[Typo3] pagination possible in "Menu of subpages"
Peter Klein
peter at umloud.dk
Tue Oct 11 18:27:03 CEST 2005
"Dave Chewter" <typo3 at interonline.co.uk> wrote in message
news:mailman.1.1129047268.1482.typo3-english at lists.netfielders.de...
>
> This seems to work great, but what would be the best way of adding it as a
> content element. By default it's showing all the main categories of the
> site right at the top of the template.
>
Just change the typoscript a bit, then you can replace the normal "Menu of
subpages", just like in Torsten's example..
--- cut ---
lib.pbmenu = COA
lib.pbmenu {
10 = COA
10 {
wrap = <ul>|</ul>
10 = HMENU
10.special = directory
10.special.value.field = pages
10.maxItems = 5
10.1 = TMENU
10.1 {
wrap = <li><ul id="menublock-1" style="display:block;">|</ul></li>
NO {
allWrap = <li>|</li>
}
}
20 < .10
20.begin = 6
20.1.wrap = <li><ul id="menublock-2" style="display:none;">|</ul></li>
30 < .10
30.begin = 11
30.1.wrap = <li><ul id="menublock-3" style="display:none;">|</ul></li>
40 < .10
40.begin = 16
40.1.wrap = <li><ul id="menublock-4" style="display:none;">|</ul></li>
}
50 = TEXT
50.value = Page 1
50.wrap = <a href="javascript:;" onclick="toggleUL('menublock-1');return
false;">|</a>
50.if.isTrue.cObject < .10.10
60 = TEXT
60.value = Page 2
60.wrap = <a href="javascript:;" onclick="toggleUL('menublock-2');return
false;">|</a>
60.if.isTrue.cObject < .10.20
70 = TEXT
70.value = Page 3
70.wrap = <a href="javascript:;" onclick="toggleUL('menublock-3');return
false;">|</a>
70.if.isTrue.cObject < .10.30
80 = TEXT
80.value = Page 4
80.wrap = <a href="javascript:;" onclick="toggleUL('menublock-4');return
false;">|</a>
80.if.isTrue.cObject < .10.40
}
# Remove the original "Menu of subpages"
tt_content.menu.20.1 >
# And replace it with our new one..
tt_content.menu.20.1 < lib.pbmenu
--- cut ---
---
Peter Klein / Umloud Untd.
More information about the TYPO3-english
mailing list