[TYPO3-english] Odd menu behaviour: two identical templates, one working, one not

Markus Klein klein.t3 at mfc-linz.at
Tue Jul 3 18:26:23 CEST 2012


Hi!

Does the subpage have sub-pages too?
Did you set the checkboxes Clear Contants / Setup on the subpage-template?

Kind regards
Markus

> -----Original Message-----
> From: typo3-english-bounces at lists.typo3.org [mailto:typo3-english-bounces at lists.typo3.org] On Behalf Of Stefan Müller
> Sent: Tuesday, July 03, 2012 5:31 PM
> To: typo3-english at lists.typo3.org
> Subject: [TYPO3-english] Odd menu behaviour: two identical templates, one working, one not
> 
> Hi
> 
> I've got two templates, one on the root page and one on a sub-page. For testing purposes both are identical (I've copied the
> typoscript).
> 
> The odd thing is that my menu is working perfectly on the pages that use the root page's template, but on the sub-page with the
> copied template the menu is empty (no html output)!
> 
> The complete setup section follows below:
> 
> # Menu
> temp.menu = HMENU
> temp.menu.1 = TMENU
> temp.menu.1 {
>      expAll = 1
>      # Normal state properties
>      NO.allWrap = <div class="menu0"> | </div>
>      # Enable active state and set properties:
>      ACT = 1
>      ACT.allWrap = <div class="menu0"> | </div> }
> temp.menu.2 = TMENU
> temp.menu.2 {
>      expAll = 1
>      # Normal state properties
>      NO.allWrap = <div class="menu1"> | </div>
>      # Enable active state and set properties:
>      ACT = 1
>      ACT.allWrap = <div class="menu1"> | </div> }
> temp.menu.3 = TMENU
> temp.menu.3 {
>      expAll = 1
>      # Normal state properties
>      NO.allWrap = <div class="menu2"> | </div>
>      # Enable active state and set properties:
>      ACT = 1
>      ACT.allWrap = <div class="menu2"> | </div> }
> 
> # Template content object:
> temp.mainTemplate = TEMPLATE
> temp.mainTemplate {
>    template = FILE
>    template.file = fileadmin/template/template.html
>    workOnSubpart = DOCUMENT_BODY
>    subparts.MENU < temp.menu
>    subparts.CONTENT_LEFT < styles.content.getLeft
>    subparts.CONTENT_CENTER < styles.content.get
>    subparts.CONTENT_RIGHT < styles.content.getRight
>    subparts.INSIDE_HEADER = TEXT
>    subparts.INSIDE_HEADER.field= subtitle//title }
> 
> temp.headTemplate = TEMPLATE
> temp.headTemplate{
>    template = FILE
>    template.file = fileadmin/template/template.html
>    workOnSubpart = HEADER_BODY
>    subparts.TITLE = TEXT
> }
> 
> # Default PAGE object:
> page = PAGE
> page.typeNum = 0
> 
> page.10 < temp.mainTemplate
> page.headerData.10 < temp.headTemplate
> 
> 
> I'm pretty well stuck on this. Thanks for any hint.
> 
> Stefan
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list