[TYPO3-english] Custom class in tmenu according to uid page

Peter Russ peter.russ at 4many.net
Mon Feb 22 17:28:58 CET 2010


--- Original Nachricht ---
Absender:   Victor Livakovsky
Datum:       22.02.2010 17:17:
>> --- Original Nachricht ---
>> Absender:   Marieke Vandamme
>> Datum:       22.02.2010 15:49:
>>> Using:
>>>   key.field = uid
>>> it works! Thanks a lot!
>>>
>>
>> Hardcoded break point....
>> This would be the first site where uids didn't change.
>> It might take 2 more minutes to get a flexible solution.
>> But would be worth, i.e. less trouble.
> 
> Yes, that's not perfect, but what would you propose for making concrete 
> page be wrapped with certain class? OptinSplit not a solution, because 
> page can appear anywhere in menu.
> You mentioned something about alias. Can you explain, please?

There is a field called alias in the page properties. It can be used for 
simulate static contend to get an URL different from the page title.

So if simulate static is not used (e.g. due to realurl) this field could 
be used to provide a classname instead.

quick draft:
NO.outerWrap.cObject = COA
NO.outerWrap.cObject {
	10 = TEXT
	10 {
		field = alias
		wrap=<div class="|">
	}
	20 = TEXT
	20.value=|</div>
}

should work so or similar

Peter.

-- 
loans that change lives http://www.kiva.org

_____________________________
uon GbR
http://www.uon.li
http://www.xing.com/profile/Peter_Russ


More information about the TYPO3-english mailing list