Xippo / OM-Cookie-Manager

TYPO3 Extension - OM Cookie Manager | Feats: Consent Panel (Optin), Grouping and Google Tag Manager support
GNU General Public License v3.0
10 stars 9 forks source link

Outsourcing of HTML / Script markup to files? #10

Open mgrn0 opened 4 years ago

mgrn0 commented 4 years ago

Excuse me in case I have missed it - looked through the manual but could not find anything related: Can I somehow 'outsource' the html markup for cookies to real files and reference those instead of having my JS code stored to the DB in the cookie records? I would love to have them in files for git storage reasons as well as minification..

Xippo commented 4 years ago

Hi Mgrn0, at the moment there is no direct way to do this. But you can enable the typoscript variable parsing inside the settings of the extension, put a variable only inside the html field and then fill this variable inside your typoscript with your html code (im sure there is a way to fetch a file as well, in the worst case over a userfunc).

//Edit i have checked the extension and for know only typo3 constants are injected, if the specific setting is enabled, but probably you can't fill them over a userfunc