[TYPO3] Differenciation between the first & the last items of the MENU

Fearless Goblin (Victor Livakovsky) v-tyok at mail.ru
Tue Sep 2 11:11:48 CEST 2008


> Now the " | " symbol between the items is due to CSS. But there should be no
> such symbol before first item - HOME & after the last item - CONTACT US. My
> problem is that in the MENU how can I differenciate between the first & the
> last item of the menu.

You should use optionSplit in menu wrap. Here is documentation about
it: http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/3/1/

And in your case you may is it in such way:
...wrap = <div class="withoutVerticalPipe"> | </div> |*| <div
class="withinVerticalPipe"> | </div> |*| <div
class="withoutVerticalPipe"> | </div>

Or you may use CSS "before" pseudo-element - define "|" here, and then
use CSS "first-child" pseudo-class, where you should redefine this.



More information about the TYPO3-english mailing list