[TYPO3-english] Odd menu behaviour: two identical templates, one working, one not
Markus Klein
klein.t3 at mfc-linz.at
Tue Jul 3 19:40:46 CEST 2012
Hi!
You don't need the special thing at all.
I guess you also set the third option "root"-something.
The entryLevel of a menu is relative to the closest template which has this option set.
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 7:24 PM
> To: TYPO3 English
> Subject: Re: [TYPO3-english] Odd menu behaviour: two identical templates, one working, one not
>
> Hi Markus, Hi Phillipp
>
> Clear Contants / Setup checkboxes are set.
> The sub-page has no sub-pages. If I create some, those appear in the menu (could have thought of testing this my self). This makes
> sense if the menu is supposed to show the local sub-tree only.
>
> Is this the intendend default behaviour? Seems odd to me. If so, why do the the other sub-pages (the one that use the root's
> template) behave differently (they show the hole tree, including the siblings)? I'm confused...
>
> Anyway, Phillipp's special value thing works for me! I'm using it on both templates now. Doesn't change the behaviour of the root
> template, but makes both behave the same.
>
> Thanks for your help!
> Stefan
>
> Am 03.07.2012 18:26, schrieb Markus Klein:
> > 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
> > _______________________________________________
> > TYPO3-english mailing list
> > TYPO3-english at lists.typo3.org
> > http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
> >
>
> _______________________________________________
> 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