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

Бойчук Петро petro.boychuk at gmail.com
Fri Jun 15 11:10:55 CEST 2007


Every one forgot about my post.
please help :)

On 6/13/07, Бойчук Петро <petro.boychuk at gmail.com> 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 = |*|  |&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-dev mailing list