DirkPersky / typo3-dp_cookieconsent

TYPO3 Extension: Enable a cookie consent box. Let you visitors control the usage of cookies and load script or content after a consent. (ePrivacy, TTDSG)
GNU Affero General Public License v3.0
32 stars 27 forks source link

wrong typoscript in FLUIDTEMPLATE #35

Closed lisardo2 closed 4 years ago

lisardo2 commented 4 years ago

embedding FLUIDTEMPLATE with this code is wrong:

lib.dp_cookieconsent {
    file = EXT:dp_cookieconsent/Resources/Private/Layouts/Cookie.html

    templateRootPaths < plugin.dp_cookieconsent.view.templateRootPaths
    -- snip ---
}

using "file =" is deprecated and makes it nearly impossible to move the templates in an own site extension. Solution is to alter "file" to "templateName":

lib.dp_cookieconsent {
    templateName = Cookie

    templateRootPaths < plugin.dp_cookieconsent.view.templateRootPaths
    -- snip ---
}

this will work.