giraff
giraff

Reputation: 4711

Disable spam protection when generating an Email in Fluid

I have enabled config.spamProtectEmailAddresses = -4 for my Typo3-site.

In a fluid template (that is used for generating the HTML of an email generated by the extension powermail), how can I override this setting to not protect the email adress here?

I have tried (see parseFunc)

<f:format.html parseFuncTSPath="lib.parseFunc_email">{text}</f:format.html>

but I can't find out which TS-property needs to change.

Or is there a different way to achieve this?

Upvotes: 1

Views: 992

Answers (2)

giraff
giraff

Reputation: 4711

I changed the TS setting config.spamProtectEmailAddresses = -4 for specific pages:

config.spamProtectEmailAddresses = -4
[globalVar = _GET|tx_powermail_pi1|action = create]
config.spamProtectEmailAddresses = 0
[global]

(From https://forge.typo3.org/issues/72983)

Upvotes: 1

Jost
Jost

Reputation: 5850

The most simple way would be to generate the e-mail link yourself:

<a href="mailto:{emailAddress}" title="...">{linkText}</a>

Upvotes: 1

Related Questions