[Typo3] CASE if.colPos=0 then ...

Rob De Vries spam_this at pandora.be
Fri Feb 11 14:02:21 CET 2005


hey listers,

I have 2 columns, left & normal.
in the LeftCol i insert the plugin.tx_tmlunchmenu_pi1 with a subpart in 
my template:
subparts < plugin.tx_tmlunchmenu_pi1 (works fine)

in the normal column I insert that same plugin with a normal content 
element. (what works fine as well)

Now i would like to use 2 different templates for this plugin.
In the left, i would like to use a template that only shows the 
day-meals, in the normal column I would like to use the normal template 
that shows all information (with all the markers for this plugin).


My problem is that i don't know how to set this condition.
I have tryed to use CASE, but I don't completly understand how this works.

So what i need is something like:
ifColPos = 1 then : plugin.tx_tmlunchmenu_pi1.file.template = 
fileadmin/template/menu/template-day.tmpl

ifColPos = 0 then : plugin.tx_tmlunchmenu_pi1.file.template = 
fileadmin/template/menu/template-normal.tmpl

anyone has an idea?

tnx in advanced

Rob



More information about the TYPO3-english mailing list