Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?)

like image 319
Philipp M Avatar asked Jan 28 '23 02:01

Philipp M


2 Answers

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

like image 98
Heinz Schilling Avatar answered Feb 18 '23 14:02

Heinz Schilling


You can enable it in:

Template - > Constant Editor - > Powermail_Aditional - > Allow html in html fields/ Allow html in field labels

Then you can use HTML-Code. Or better:

<f:link.page pageUid="123">Privacy Policy</f:link.page>
like image 21
justcasper Avatar answered Feb 18 '23 14:02

justcasper