[TYPO3-UG US] TMENU CUR page
Christopher Torgalson
bedlamhotel at gmail.com
Thu Nov 2 23:30:11 CET 2006
Hi,
On 11/2/06, K from DC <kfromdc at gmail.com> wrote:
> Thank you guys for your responses. I followed your suggestions and ended up
> with some progress but not quite what I was expecting...
>
> temp.rmenu = COA
> 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>
> }
>
> IFSUB < .NO
> IFSUB = 1
> IFSUB {
> subst_elementUid = 1
> allWrap = <li>|<ul id="rmenu-{elementUid}">
> wrapItemAndSub = |</ul></li>
> }
>
> #THE NEW SECTION
> C {
> ATagParams = class="cur"
> allWrap = <li>|</li>
> }
> CUR < .C
> CUR = 1
> # --
>
> ACTIFSUB < .IFSUB
> ACTIFSUB = 1
> ACTIFSUB.allWrap = <li>|<ul id="rmenu-{elementUid}"
> style="display:block;">
> }
>
> 10.2 < .10.1
> 10.3 < .10.1
> 10.4 < .10.1
> 10.5 < .10.1
>
> This new addition sure adds class="cur" to the current link but it also
> messes up the menu. All of a sudden the immediate only subdirectories of a
> directory become its siblings, until I click on that subdirectory. Then it
> behaves like a subdirectory but its clildren become its siblings in their
> turn. And I feel like I've been walking in circles all day today...
Question: what are you trying to achieve? What _should_ the resulting
markup look like?
Suggestion: please do not quote the entire contents of the thread in
every message...
--
Christopher Torgalson
More information about the TYPO3-UG-US
mailing list