[TYPO3-UG Dutch] 2 menu's continued

inigo grimbergen grimb at live.nl
Mon Apr 28 13:28:47 CEST 2008


Hi Lijst
 
 
Mijn pagetree is nu heel simpel
-root page
            -item 1
            -item 2
            -item 3 
            -item 4
            -link 1
            -link 2
            -link 3
 
Is het mogelijk, en zo ja hoe, mijn typoscript (zie onderaan) zo aan te passen dat:
in een gewijzigde pagetree te weten:
 
-root page
        -menu 
-item 1
            -item 2
            -item 3 
            -item 4
       -links
            -link 1
            -link 2
            -link 3
 
-menu_1 alle pagina’s die onder menu hangen pakt 
-menu_2 alle pagina’s die onder de pagina links hangen weergeeft. (waarbij beide “hoofdpagina’s’ zelf buiten beeld blijven (hide))
 
De reden is dat is van deze “oplossing”: 
subparts.menu_1.excludeUidList = 25,26,27,28,29,30,31,32,33,34,35,36
af wil. 
Je moet nl. nu voor elke nieuwe pagina je typoscript aanpassen.
 
Hier is mijn TS:
 
plugin.tx_automaketemplate_pi1 {
content = FILE
content.file = fileadmin/template/main/template_2.html
            
 elements {
 BODY.all = 1
 BODY.all.subpartMarker = DOCUMENT_BODY
 HEAD.all = 1
 HEAD.all.subpartMarker = DOCUMENT_HEADER
 HEAD.rmTagSections = title
 TD.all = 1
 }
relPathPrefix = fileadmin/template/main/
}
 
temp.menu_1 = HMENU
temp.menu_1.1 = TMENU
temp.menu_1.1 {
 NO.allWrap = <li class="menu_1-level1-no"> | </li>
 ACT = 1
 ACT.allWrap = <li class="menu_1-level1-act"> | </li>
}
 
temp.menu_2 = HMENU
temp.menu_2.1 = TMENU
temp.menu_2.1 {
 NO.allWrap = <div class="link_1-no"> | </div>
 ACT = 1
 ACT.allWrap = <div class="link_1-act"> | </div>
}
 
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
 template =< plugin.tx_automaketemplate_pi1
 workOnSubpart = DOCUMENT_BODY
 subparts.menu_1 < temp.menu_1
 subparts.menu_1.excludeUidList = 25,26,27,28,29,30,31,32,33,34,35,36
 subparts.link_1 < temp.menu_2
 subparts.link_1.excludeUidList = 2,3,4,5,6,17,19,20,21,22,23,24
 subparts.content < styles.content.get
}
 
temp.headTemplate = TEMPLATE
temp.headTemplate { 
template =< plugin.tx_automaketemplate_pi1
 workOnSubpart = DOCUMENT_HEADER
}
 
page = PAGE
page.typeNum = 0
page.10 < temp.mainTemplate
page.headerData.10 < temp.headTemplate
 
 
alvast bedankt
 
grt I. 
 

Plan je evenement, nodig mensen uit en deel je foto's met Windows Live Events 
_________________________________________________________________
Probeer Live Search: de zoekmachine van de makers van MSN!
http://www.live.com/?searchOnly=true


More information about the TYPO3-UG-dutch mailing list