Search code examples
typo3typo3-8.xtypo3-extensionspowermail

TYPO3 Powermail - Methods to add a link in a checkbox label or title


Since powermail 6.0. it's possible to add a link in a checkbox label (for GDPR) as per the docu:

https://docs.typo3.org/typo3cms/extensions/powermail/ForAdministrators/Privacy/Index.html#add-a-link-in-a-checkbox-label.

It says:

Just use an option in your FlexForm like (with an example link to page 123 where the privacy terms are located):

I accept the <f:link.page pageUid="123">privacy terms</f:link.page> | privacy terms accepted

After that you have to enable html in labels (this feature is turned off for security reasons). Example TypoScript constants:

plugin.tx_powermail.settings.misc.htmlForLabels = 1

... yet it also says that '(this feature is turned off for security reasons)'.

What other options are there to accomplish this? (with no security loss?)


Solution

  • We add a normal content element with the link above the checkbox. For example to accept the terms and conditions. Then the content element is included in the form. See https://docs.typo3.org/typo3cms/extensions/powermail/ForEditors/AddANewForm/FieldContentElement/Index.html