4
votes

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

5

5 Answers

3
votes

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

3
votes

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>
1
votes

1) The solution with the content element is a good thing - that should also be described

2) It's wrong that powermail version 6.0 is needed to disable the IP-storing. This feature is available for years now but 6.0 turns it off by default

3) If you trust your editors or if you already allow your editors to add content elements of type HTML it's really also no problem to allow HTML in powermail field labels for your editors

Maybe I should update the privacy documenation to clearify this points

1
votes

This solution appears again and again at the top of Google. But the name is edit!

here for the new Powermail Version:

plugin {
    tx_powermail {
        settings {
            misc {
                htmlForHtmlFields = 1
                htmlForLabels = 1
            }
        }
    }
}
0
votes

You can set link in checkbox lable or title like,

I accept the <a href="index.php?id=123">privacy terms</a>

in powermail/Resources/Private/Partials/Form/Field/Check.html

Change code

   <vh:string.RawAndRemoveXss>{setting.label}</vh:string.RawAndRemoveXss>

to

   <f:format.raw>{setting.label}</f:format.raw>