To transfer a variable (in our case called $size) from a prehook to a placeholder of the 'email'-hook we added in the prehook:
$hook->setValue('size',$size)
an beside this we added in the form
<input name="size" type="hidden" value="[[!+fi.id_size]]" />
This technique works but is this the recommend way to transfer data from the prehook to placeholders of the email-snippet?
We also tried to just set a placeholder in the prehook but this didn´t work:
$modx->setPlaceholder("size", $size)
This technique didn´t transfer the value into the email, but only the word
Does anybody know how to transfer datas correctly from prehooks to the chunk of the email-snippet?
(we use Revo 2.1.3pl and formit 2.0.2 pl)
Thanks a lot!
Letti