[TYPO3] [TYPO3 3.8.1] Output menu ids or find out a menu id
nirmalya Mondal
nirmalya at fivee.in
Sat Dec 2 10:35:16 CET 2006
Dmitrii Dimandt wrote:
> I have a menu defined like this:
>
> temp.left_menu.2 = TMENU
> temp.left_menu.2.noBlur = 1
> temp.left_menu.2 {
> // expAll = 1
> wrap = <ul class="catalogue-menu"> | </ul> <br><br>
> // wrapItemAndSub = <div> | </div>
>
> NO {
> linkWrap = <li>|</li>
> }
> ACT = 1
> ACT {
> linkWrap = <li>|</li>
> }
> CUR = 1
> CUR {
> linkWrap = <li>|</li>
> }
> }
>
>
> Our SEO (search engine optimizer) wants to output a single menu item in a
> different color. So, if our menu goes like this:
>
> - Section 1
> ---- Item 1.1
> ---- Item 1.2
> ---- Item 1.3
> - Section 2
> ---- Item 2.1
> ---- Item 2.2
> ---- Item 2.3
>
> I need to change the color of item 2.2
>
> And I have no idea how to do that :)
>
> I tried searching through the list, but none of the solutions work for me
> for some odd reason.
>
> The simplest solution I'm looking for is to output menus like this: <li
> id="m_menu_id"></li>. But I can't figure out how to do that. dataWraps,
> ATagParams don't seem to work with values like "id={field:id}" or
> "id={elementUid}".
>
> Whatever shall I do?
>
> Thank you.
I believe you are searching this code...
Constants:
divId = {field:uid}
Setup:
2 = TMENU
2 {
expAll=1
ACT.doNotLinkIt = 1
wrap =<ul> | </ul>
NO.ATagParams = id="pageId_{field:uid}"
NO.allStdWrap.insertData = 1
# Normal state and set properties:
NO {
allWrap = <li><div id="siteMap_{$divId}">|</div></li>
}
}
Have a good day.
Regards,
nirmalya Mondal
-------------------
http://www.fivee.in
More information about the TYPO3-english
mailing list