[TYPO3-templavoila] How To Render subtemplates of FCE's? (not-solved)
Christian Wolff
Chris at connye.com
Thu Feb 7 11:10:46 CET 2008
Sorry this problem still exitsts.
On Thu, 07 Feb 2008 10:43:12 +0100, Christian Wolff <Chris at connye.com>
wrote:
> Hi Everybody and thanks for your help,
> finaly after looking trough the Templa Voila Source code,
>
> if find a way to switch the subtemplates of FCE elements via Conditions.
> [globalVar = GP:color=blue]
> page.50.childTemplate = blue
> tt_content.templavoila_pi1.childTemplate = blue
> [global]
>
> this solved my problem. so every FCE is now looking vor a subtemplate es
> well
> if laoyut changes to blue.
>
> greets chris
>
>
> On Wed, 06 Feb 2008 22:35:44 +0100, Christian Wolff <Chris at connye.com>
> wrote:
>
>> On Wed, 06 Feb 2008 21:56:43 +0100, Dmitry Dulepov [typo3]
>> <dmitry at typo3.org> wrote:
>>
>>> Hi!
>>>
>>> Christian Wolff wrote:
>>>> so i have created a page layout with multipe sup-templates
>>>> an the same for FCE's
>>>> but only the page template is changing the FCE's wont change
>>>> to the corresponding layout.
>>>> what am im doing wrong?
>>>> my TS-Config:
>>>> TCEFORM.tx_templavoila_tmplobj.rendertype.addItems.blue = blue
>>>> my TS-Template:
>>>> [globalVar = GP:color=blue]
>>>> page.50.childTemplate = blue
>>>> [global]
>>>> 50 = USER
>>>> 50.userFunc = tx_templavoila_pi1->main_page
>>>
>>> Not sure what you wanted to do but this is for PAGE-only because of
>>> "main_page". It will not work for FCE. If you want it for FCE, it
>>> should be just "main".
>>>
>>
>> Thanks for your answer
>> im trying to change the display code of my content based on the
>> selected color.
>> in these diverent templates ineed different html code. for content
>> elements.
>>
>> so the same FCE (data Structure should) use a different Template Object
>> if layout blue is selected.
>>
>> i hope this makes clear what in want to do. hope ther is a solution to
>> this.
>> because i need some (6-8)of these "display types" based on the same
>> page content.
>>
>> greets chris
>>
>>
>
>
>
--
Christian Wolff // Berlin
http://www.connye.com
Latest Projects:
http://www.flycall.de | http://www.atr24.de | http://www.titanic.de
More information about the TYPO3-project-templavoila
mailing list