wrapItemAndSub not for the last item

View: New views
3 Messages — Rating Filter:   Alert me  

wrapItemAndSub not for the last item

by Sergio Catalá :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have the next TS code:

temp.Menu = HMENU
temp.Menu {
    entryLevel = 1
    1 = TMENU
    1 {
        noBlur = 1
        expAll = 1
        NO {
            wrapItemAndSub =  | X
        }
    }
}

The result on my web is something like that:

Menu1    X    Menu2   X   Menu3   X

Is there a way to remove the last "X"? Some kind of TS sentence that
allows not using "wrapItemAndSub" for the last item (or even the
first)?

Thanks in advance,
Sergio


_______________________________________________
TYPO3-english mailing list
TYPO3-english@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english

Re: wrapItemAndSub not for the last item

by Susanne Moog-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Sergio,

Sergio Catalá Gil wrote:

> Is there a way to remove the last "X"? Some kind of TS sentence that
> allows not using "wrapItemAndSub" for the last item (or even the
> first)?

which TYPO3 version are you using? Since TYPO3 4.2 I think there is
"optionSplit" for wrapItemAndSub. Here is a link to optionSplit in TSref:
http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/3/1/#id3927888

HTH,

Susanne
_______________________________________________
TYPO3-english mailing list
TYPO3-english@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english

Re: wrapItemAndSub not for the last item

by Bram Janssens :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Sergio Catalá Gil schreef:
>
> Is there a way to remove the last "X"? Some kind of TS sentence that
> allows not using "wrapItemAndSub" for the last item (or even the
> first)?
>
> Thanks in advance,
> Sergio
>
>

I also think that "Optionsplit" is a good idea

a small TS example:

temp.Menu = HMENU
temp.Menu.1 = TMENU
temp.Menu.1 {
wrap = <ul> | </ul>
NO.allWrap = <li> | </li>
NO.ATagParams = | |*||*|class="last"|
ACT = 1
ACT.allWrap = <li> | </li>
}

RESULT:

<ul>
        <li>item 1</li>
        <li>item 2</li>
        <li class="last">item 3</li>
</ul>

With de CSS class you configure the view of the last item.

Regards,

Bram
------------
www.bworx.be
_______________________________________________
TYPO3-english mailing list
TYPO3-english@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english