[TYPO3-UG US] TMENU CUR page?
Dennis Shewmaker
dshewmaker at promission.net
Thu Nov 2 00:11:44 CET 2006
Hi K from DC,
Use ACT for active menu if I remember correctly. Have a look at this:
http://typo3.org/documentation/document-library/references/doc_core_tsref/current/view/8/11/
see code below for quick example.
K from DC wrote:
> temp.rmenu {
>
> 10 = HMENU
> 10.wrap = <div id="menur"><ul>|</ul></div>
> 10.special = directory
> 10.special.value = 1636
> 10.1 = TMENU
> 10.1 {
> expAll = 1
> stayFolded = 0
> itemArrayProcFunc = user_foldoutMenu->getIfSubUidList
> NO {
> ATagParams = class="no"
> allWrap = <li>|</li>
> }
Just taking some from your code:
ACT < .NO
ACT = 1
ACT.allWrap = <li> <strong> | </strong> </li>
>
> IFSUB < .NO
> IFSUB = 1
> IFSUB {
> subst_elementUid = 1
> allWrap = <li>|<ul id="rmenu-{elementUid}">
> wrapItemAndSub = |</ul></li>
> }
> ACTIFSUB < .IFSUB
> ACTIFSUB = 1
> ACTIFSUB.allWrap = <li>|<ul id="rmenu-{elementUid}"
> style="display:block;">
> }
> ....
> which works fine, but the menu doesn't show what the current page is. what
> I'd like is to add some kind of class name to the current page so that I
> can
> apply some CSS. i know that the current page is CUR but don't know how to
> use it. Tanks in advance. LB
More information about the TYPO3-UG-US
mailing list