[TYPO3] HMENU - don't wrap item-before-last if last-item is active

Peter Klein peter at umloud.dk
Fri Jun 15 18:29:08 CEST 2007


Hi ??
The easiest way to do it would be to write a small itemArrayProcFunc for the 
menu, that filters out the menuitem with CUR state.
That way you don't need any optionSplits. ;)

--
Peter Klein / Umloud Untd.
"?????? ?????" <petro.boychuk at gmail.com> wrote in message 
news:mailman.327272.1181900752.21067.typo3-english at lists.netfielders.de...
> 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 = |*|  |&nbsp;&#124;&nbsp; |*| |
>            }
>            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 = |*|  |&nbsp;&#124;&nbsp; |*| | ) 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