[Typo3] Case / if statements in TMENU for ATagParams

Henry Wilhelm henry at hexhe.de
Thu Sep 8 11:20:44 CEST 2005


Hi P.				

i have nearly the same problem. Splitting so far is no problem, the pagetitles with long text must have a separator like "|", for example: "Very long page title|for this page"

TS:

lib.subNavList = HMENU
lib.subNavList {
   entryLevel = 1
   1 = TMENU
   1.wrap = <dl>|</dl>
   1.NO {
       allWrap = <dt>|</dt>
       stdWrap.split {
           token = |
           cObjNum = 1
           1.current = 1
           1.wrap = |<br />
       }
   }
}

But now, i would like to add a "class"-param only for very long pagetitles with separators in it (<a href="index.php?id=200" class="longmenu">Very long page title<br />for this page</a>), other pagetitles should not have this "class"-param (<a href="index.php?id=200">Short page title</a>)

Do you know, how to solve this?

-----------------------
This thread is located in the archive at this URL:
http://typo3.org/documentation/mailing-lists/english-main-list-archive/thread/110118484/
					



More information about the TYPO3-english mailing list