[TYPO3] Automaketemplate and nested subparts

Søren Vedel sv at workhouse.dk
Sat Jan 13 01:02:49 CET 2007


Hi Eduardo,

This will never work. You have to do something like this:

<div id="language_selector">
     en/eo/es
</div>
<div id="main_content">
     bla   bla bla bla ...
     bla   bla bla bla ...
</div>

Because the autoparser recognizes the starting and ending div's and 
replaces what's in between.

Med venlig hilsen/Kind regards
Søren Vedel
Workhouse Media

> 
> In the typoscript template I can set main_content *or* language_selector 
> (by commenting out one or the other), but not both.  Below is a part of 
> the TS (I've just translated it, there might be a typo):
> 
> muu = TEXT
> muu.value = it works!
> 
> temp.mainTemplate {
>    template =< plugin.tx_automaketemplate_pi1
>    workOnSubpart = DOCUMENT_BODY
>    subparts.menu_1 < temp.menu_1
>    subparts.main_content < styles.content.get
>    subparts.language_selector < muu
> }
> 
> Does anybody know why this might be happening?  It seems that when I 
> fill main_content I also lose the nested subpart.  Maybe nested subparts 
> like that are not supported, I don't know.  Everything else works 
> perfectly.
> 
> Thanks, Eduardo.


More information about the TYPO3-english mailing list