Im trying to highlight the current item in the menu. We use this code in a few designs and it works, but not in the current design im working on. Basiclally the class gets printed out empty no matter what I put in there.
<MySource_AREA id_name="top_menu" design_area="menu_normal">
<MySource_SET name="level" value="top"/>
<MySource_SET name="settings.class.normal" value=""/>
<MySource_SET name="settings.class.hierarchy" value="current"/>
<MySource_SET name="settings.class.current" value="current"/>
<MySource_ASSET>
<li id="tab_<MySource_PRINT var='asset_name'/>" class="<MySource_PRINT var='settings.class' />"><a href="<MySource_PRINT var="asset_link" />" title="Click <MySource_PRINT var="asset_short_name"/>"><span><MySource_PRINT var="asset_short_name"/></span></a></li>
</MySource_ASSET>
</MySource_AREA>
Any ideas?
Menu settings attribute not working
Geoff
(Geoffrey Bailey)
#1
Optional Secondary Menu
Geoff
(Geoffrey Bailey)
#2
I still can't get this working. Can anyone see anything wrong with this code?
steve
(Steven Bolton)
#3
Got this working. Had to remove the customisation for "top_menu" and then reapply it again and it works now.