[TYPO3-english] Fluid: Nested variables

Bernhard Kraft kraftb at think-open.at
Mon Jul 14 02:31:57 CEST 2014


Hi,

This has already been questioned by someone else - without an 
appropriate answer so I would like to ask again:
<mailman.3702.1372430654.570.typo3-english at lists.typo3.org>


So is it possible to have something like

PHP:
$this->view->assign('count', 123);
$this->view->assign('message', 'There are {count} rows');

FLUID:
<p>{message}</p>


In the result sadly {count} won't get replaced. Is there some way to 
achieve this? Or how do you cope with translated messages which have to 
carry values from variables? (Assume 'messsage' is taken from an LL file 
in the above example).


greetings,
Bernhard


More information about the TYPO3-english mailing list