Adding an icon to menu items

Search engine friendly UL list type menu for Actinic V8 and V9. Styled by CSS and animated by a small JavaScript.
Post Reply
norman
Site Admin
Posts: 1252
Joined: Sat Feb 07, 2004 9:55 pm

Adding an icon to menu items

Post by norman »

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:

Code: Select all

<Actinic:Variable Name="SectionName">
with:

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">
3) Create CSS for class nlicon as required.
Norman
Post Reply