Hello everyone I have this code, but I don't know what to put in html to print alternate class for selected menu
[codebox]<div class="site_nav">
<MySource_AREA id_name="site_navigation" design_area="menu_normal">
<MySource_SET name="level" value="top" />
<MySource_SET name="prefix_with_divider" value="false" />
<MySource_SET name="suffix_with_divider" value="false" />
<MySource_SET name="settings.class.normal" value="normal" />
<MySource_SET name="settings.class.current" value="class='selected'" />
<MySource_SET name="settings.class.hierarchy" value="class='hier'" />
<MySource_ASSET><a href="<MySource_PRINT var='asset_link' />" class="nav" title="<MySource_PRINT var="asset_short_name" />"><MySource_PRINT var="asset_thumbnail" /></a></MySource_ASSET><MySource_DIVIDER><img src="mysource_files/nav_divider.gif" alt="divider" width="2" height="67" /></MySource_DIVIDER></MySource_AREA></div>
<!-- end #header --></div>[/codebox]
Any ideas? how can I printout settings.class.normal and settings.class.selected
at the moment it all works but class=selected is not printed?
You don't say where you want the class to print, but this should give you an idea:
">
That will add the correct settings.class value into the class of the <a> tag.
[quote]You don't say where you want the class to print, but this should give you an idea:
">
That will add the correct settings.class value into the class of the <a> tag.[/quote]
Thanks Avi spot on, you still on this forum old habits die hard?
Oh, I always lurk. :P