bernd wilke
2013-07-08 13:15:17 UTC
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
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
http://www.pi-phi.de/cheatsheet.html