You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to make manipulateVariablesInPowermailAllMarker work to manipulate the values of an array field (e.g. checkbox, multiselect) in the {powermail_all} marker.
Let's assume my field my_checkboxes is defined like this and the user selects option 1 and 3.
Option One|1
Option Two|2
Option Three|3
And now I want to manipulate the selected options via TypoScript:
plugin.tx_powermail.settings.setup {
manipulateVariablesInPowermailAllMarker {
optinMail {
my_checkboxes = TEXT
my_checkboxes.field = value
}
}
}
Unfortunately this seems to have a bug: value is always the json notation of all selected options (e.g. ["1","3"]), i.e. in the mail the value is rendered as ["1","3"], ["1","3"]. Is there another property I oughta use to access the single option's value?
I think the problem roots in how ManipulateValueWithTypoScriptViewHelper.php ignores the correctly passed {subValue} from PowermailAll/Mail.html:
When changing $this->contentObjectRenderer->start($answer->_getProperties()); to $this->contentObjectRenderer->start(['value' => $value]); it's working fine.
The text was updated successfully, but these errors were encountered:
kitzberger
added a commit
to GFEMediaGmbH/powermail
that referenced
this issue
Feb 9, 2024
Without this patch it's not possible to use manipulateVariablesInPowermailAllMarker
to manipulate values of an array field such as checkboxes and multiselect.
Example:
```
plugin.tx_powermail.settings.setup {
manipulateVariablesInPowermailAllMarker {
optinMail {
my_checkboxes = TEXT
my_checkboxes.field = value
}
}
}
```
Resolves: in2code-de#956
I'm trying to make
manipulateVariablesInPowermailAllMarker
work to manipulate the values of an array field (e.g. checkbox, multiselect) in the{powermail_all}
marker.Let's assume my field
my_checkboxes
is defined like this and the user selects option 1 and 3.And now I want to manipulate the selected options via TypoScript:
Unfortunately this seems to have a bug:
value
is always the json notation of all selected options (e.g.["1","3"]
), i.e. in the mail the value is rendered as["1","3"], ["1","3"]
. Is there another property I oughta use to access the single option's value?I think the problem roots in how
ManipulateValueWithTypoScriptViewHelper.php
ignores the correctly passed{subValue}
fromPowermailAll/Mail.html
:When changing
$this->contentObjectRenderer->start($answer->_getProperties());
to$this->contentObjectRenderer->start(['value' => $value]);
it's working fine.The text was updated successfully, but these errors were encountered: