TYPO3 Powermail: settings.setup.sender.enable.if

457 views Asked by At

I tried different ways to set sender mail enabled only if a checkbox in the form is activated, but always failed.

1st try:

sender.enable=1
sender.enable.if.isTrue.data=GP:tx_powermail_pi1|field|checkboxfield

2nd try:

[traverse(request.getQueryParams(), 'tx_powermail_pi1/field/checkboxfield') > 0]

3rd try:

sender.enable=CASE
sender.enable.key.data=GP:tx_powermail_pi1|field|checkboxfield
sender.enable.1=1
sender.enable.default=0

4th try:

sender.enable.field=checkbox

Is it possible? What's the right way to do it?

Thank you very much.

1

There are 1 answers

2
Alex Kellner On

This won't work because sender.enable does not accept TypoScript content objects in line https://github.com/einpraegsam/powermail/blob/develop/Configuration/TypoScript/Main/Configuration/04_MailSender.typoscript#L6 I think you have to work with TypoScript conditions to enable or disable it.