[TYPO3-english] Dificile H/TMENU problem
David Bruchmann
typo3-en at bruchmann-web.de
Tue May 5 03:21:15 CEST 2009
Hy Mai Ling,
The Rootline-Menu is extended now by the CUR-Status, so that the current
page isn't linked. I also added arrows as background-image before each link.
The CSS perhaps should be noted and adjusted to your requirements in a
CSS-File.
For the structure with displaying different menus denpendent on the
depth I think you've to note it like that (that's how I understood you):
page.headerData.10 = TEXT
page.headerData.10.value (
<style type="text/css">
.special_rootline {font-size:small}
.special_rootline .s_rootline
{background:url(typo3/gfx/arrowright.png)
no-repeat;padding-left:16px;font-weight:bold}
.special_rootline .s_rootline_level_0 {margin-left:0px}
.special_rootline .s_rootline_level_1 {margin-left:8px}
.special_rootline .s_rootline_level_2 {margin-left:16px}
.special_rootline .s_rootline_level_3 {margin-left:24px}
.special_rootline .s_rootline_level_4 {margin-left:32px}
.special_rootline .s_rootline_level_5 {margin-left:40px}
.special_rootline .s_rootline_level_6 {margin-left:48px}
</style>
)
[treeLevel = 0,1,2,4,5]
#############################
### Your Normal Menu Here ###
#############################
page.10 = HMENU
page.10 { ... }
#############################
### Rootline-Menu
#############################
[ELSE]
page.10 = HMENU
page.10 {
wrap = <div class="special_rootline">|</div>
special = rootline
1 = TMENU
###### All in One Line - start #####
1.NO.linkWrap = |*| <div class="s_rootline s_rootline_level_0">|</div>
|| <div class="s_rootline s_rootline_level_1">|</div> || <div
class="s_rootline s_rootline_level_2">|</div> || <div class="s_rootline
s_rootline_level_3">|</div> || <div class="s_rootline
s_rootline_level_4">|</div> || <div class="s_rootline
s_rootline_level_5">|</div> || <div class="s_rootline
s_rootline_level_6">|</div> |*|
###### All in One Line - end #####
1.CUR = 1
1.CUR < .NO
1.CUR.doNotLinkIt = 1
###### All in One Line - start #####
1.CUR.linkWrap = |*| <div class="s_rootline s_rootline_level_0">|</div>
|| <div class="s_rootline s_rootline_level_1">|</div> || <div
class="s_rootline s_rootline_level_2">|</div> || <div class="s_rootline
s_rootline_level_3">|</div> || <div class="s_rootline
s_rootline_level_4">|</div> || <div class="s_rootline
s_rootline_level_5">|</div> || <div class="s_rootline
s_rootline_level_6">|</div> |*|
###### All in One Line - end #####
}
[GLOBAL]
On my page
http://www.bruchmann-web.de/de/support/typo3/tipps-und-tricks/navigation/
you can find the Rootline-Menu too.
Best regards
David
More information about the TYPO3-english
mailing list