Adding an icon to menu items
Posted: Wed Aug 25, 2010 9:39 am
Adding an icon to menu items. Described in broad strokes - you'll have to tidy it yourself.
1) Create a Variable under Section called MenuImage of type Filename and Allow Empty.
2) Edit layout NorList Dynamic Menu Code and (around line 56) replace:
with:
3) Create CSS for class nlicon as required.
1) Create a Variable under Section called MenuImage of type Filename and Allow Empty.
2) Edit layout NorList Dynamic Menu Code and (around line 56) replace:
Code: Select all
<Actinic:Variable Name="SectionName">
Code: Select all
<actinic:block if="%3cactinic%3avariable%20name%3d%22MenuImage%22%20%2f%3e%20%21%3d%20%22%22" ><img class="nlicon" src="<actinic:variable name="MenuImage" />" /></actinic:block> <Actinic:Variable Name="SectionName">