[TYPO3] HMENU - don't wrap item-before-last if last-item is active
Tyler Kraft
headhunterxiii at yahoo.ca
Fri Jun 15 12:05:45 CEST 2007
Are you sure you want to use ACT and not CUR?
Maybe try:
lib.relatedCategories = HMENU
lib.relatedCategories {
special = directory
special.value = 7
wrap = <div class="links">|</div>
1 = TMENU
1 {
NO.allWrap = |*||*|| | | | |
ACT = 1
ACT.allWrap = |*||*|| | | | |
ACT.doNotShowLink = 1
}
}
?????? ????? wrote:
> Hi list,
> I want to create menu like this:
> page1 | page2 | page4
> page3 is active.
>
> If page4 is active I want to have
> page1 | page2 | page3
>
> I have code:
> lib.relatedCategories = HMENU
> lib.relatedCategories {
> special = directory
> special.value = 7
> wrap = <div class="links">|</div>
> 1 = TMENU
> 1 {
> NO {
> allWrap = |*| | | |*| |
> }
> ACT = 1
> ACT {
> doNotShowLink = 1
> }
> }
> }
> }
> btw, 7 is pid for page with all these pages "page1-4"
>
> But it produces html
> page1 | page2 | page4
> when page3 is active.
>
> AND
>
> If page4 is active I have
> page1 | page2 | page3 |
>
> I understand that this is because there are 4 items in the list and my
> optionSplit ( allWrap = |*| | | |*| | ) generating what I
> told him to do, but this is not what I want :)
>
> Could you help me?
> Thanks.
> PS. I would be great if there was doNotUseItem in configuration of
> TMENUITEM(GMENUITEM...) states
More information about the TYPO3-english
mailing list