[TYPO3-english] with multiple parameters in typoscript for f:cObject viewhelper ?
bernd wilke
t3ng at bernd-wilke.net
Mon Jul 8 15:15:17 CEST 2013
is it possible to transfer multiple paramters from a fluid-template to
the typoscript?
with just one parameter you have the following possibilities:
<f:cObject typoscriptObjectPath="lib.test">{data.test}</f:cObject>
<f:cObject typoscriptObjectPath="lib.test" data="{data.test}" />
{f:cObject(typoscriptObjectPath:'lib.test', data:data.test)}
{data.test ->f:cObject(typoscriptObjectPath:'lib.test')}
lib.test = TEXT
lib.test {
current = 1
wrap = (|)
typolink.parameter = 10
}
but if I want the link-param be specified in the template?
something like:
<f:cObject typoscriptObjectPath="lib.test"
link="{data.link}">{data.test}</f:cObject>
or
{f:cObject(typoscriptObjectPath:'lib.test', data:data.test, link:data.link)}
bernd
--
http://www.pi-phi.de/cheatsheet.html
More information about the TYPO3-english
mailing list