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

Tyler Kraft headhunterxiii at yahoo.ca
Fri Jun 15 14:01:06 CEST 2007


Sorry probably my typo - try this:

allWrap = |*||*| | |  || |





Бойчук Петро wrote:
> 1) there is no difference for me between ACT and CUR for me, this pages do
> not have subpages. My decision was ACT because I used to use it
> 2) this option split does not work, f.e. if first page is active then there
> is pipe before any title
> 
> On 6/15/07, Tyler Kraft <headhunterxiii at yahoo.ca> wrote:
>>
>> 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 = |*||*||&nbsp;&#124;&nbsp; | | |
>>
>>             ACT = 1
>>             ACT.allWrap = |*||*||&nbsp;&#124;&nbsp; | | |
>>             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 = |*|  |&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
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>
> 
> 
> 


More information about the TYPO3-english mailing list