eibiflo / cf_cookiemanager

Simple Typo3 Cookie Manager
GNU General Public License v2.0
11 stars 6 forks source link

CookieFrontendRepository API queries #6

Closed kveldscholten closed 1 year ago

kveldscholten commented 1 year ago

Can you extend queries for API insert so that modal layout, transition, position etc. can also be set by the API.

CookieFrontendRepository.php

$frontendModel->setLayoutConsentModal("cloud");
$frontendModel->setTransitionConsentModal("slide");
$frontendModel->setPositionConsentModal("bottom center");

$frontendModel->setLayoutSettings("box");
$frontendModel->setTransitionSettings("slide");
eibiflo commented 1 year ago

Those are actually just the default values, so why would someone want to set them in the API?

The API is currently managed by me and is exclusively used for the preconfiguration of services, frontend and cookies, To save time during setup.

kveldscholten commented 1 year ago

We use the cookie-banner in our own template EXT so we want to set as much as possible through the EXT without configuring anything manually.