[TYPO3] menu template
Charles Coleman
c.coleman at rapidfyre.net
Wed Sep 27 18:22:27 CEST 2006
Here is what I did for my breadcrumb at the top of the page...
lib.breadcrumb=HMENU
lib.breadcrumb.includeNotInMenu = 1
lib.breadcrumb {
special=rootline
special.range= 0 | -1
1=TMENU
1 {
NO.linkWrap= <font color="#ffffff">> </font>|<font
color="#ffffff"> > </font>|*| |<font
color="#ffffff"> > </font>|*| |
NO.doNotLinkIt = 1
CUR < .NO
CUR = 1
CUR {
doNotLinkIt = 1
linkWrap = |
}
}
}
Notice the "includeNotInMenu" item. I have chosen to hide in menu but
display in my breadcrumb where I am at if I link to a menu hidden page.
"Stano Paska" <stanislav.paska at kios.sk> wrote in message
news:mailman.13266.1159165671.6429.typo3-english at lists.netfielders.de...
Hi.
I have some problems with menu/rootline.
I have 3 level deep menu.
no-link-item
link-item (###)
link-item
ext-link-item
no-link-item
link-item
link-item
no-link-item
no-link-item
link-item
link-item
no-link-item
link-item
link-item
no-link-item
link-item
link-item
no-link-item
link-item
link-item
In template I defined something like this:
# ------------
tmpl.vert_menu.20.2 = TMENU
tmpl.vert_menu.20.2 {
expAll = 1
noBlur = 1
wrap = <ul>|</ul>
NO {
stdWrap.case = lower
wrapItemAndSub = <li class="vm-l2i">|</li>
}
ACT = 1
ACT {
stdWrap.case = lower
ATagParams = class="vm-a"
wrapItemAndSub = <li class="vm-l2i">|</li>
}
IFSUB = 1
IFSUB {
stdWrap.case = lower
wrapItemAndSub = <li class="vm-l2m">|</li>
doNotLinkIt = 1
stdWrap.wrap = <span>|</span>
}
ACTIFSUB = 1
ACTIFSUB {
stdWrap.case = lower
wrapItemAndSub = <li class="vm-l2m">|</li>
doNotLinkIt = 1
stdWrap.wrap = <span class="vm-a">|</span>
}
}
# ------------
Now, we need add some subpages to (###) menu item.
This subpages will be accessible only via links in text on (###) page.
I do not want show it in menu, because menu item marked with (###) will be
changed to no-link-item.
I need it normal link and subpages does not visible in menu.
I know, when I can check "not in menu" checkbox in page config, I reach
this.
BUT I need it visible in rootline, when user view it.
Do you have some ideas how to do this?
It can be possible done with only typoscript, or I must make some external
php function to generate menu?
Stano.
More information about the TYPO3-english
mailing list