I am working on a shop for a client. They want to set up the top level sections so that some sections are exclusively devoted to one brand. Other sections are more logical categories but will contain product duplicates from the 'brand sections'
Is there any easy way I can split NorList with two sub-heading are shown in the (before and after) graphics - The second one was done in photoshop so it it clear what I wanted to achive. There is a post on the main actinic site which explains about giving each top level section a unique 'SectionNumber' -
http://community.actinic.com/showthread.php?t=36913. This variable might be used to determine where the headings/splits go.
Two Part Menu
Two Part Menu
- Attachments
-
- The present menu
- now.jpg (49.32 KiB) Viewed 12005 times
-
- What I want to achive
- Desired.jpg (54.63 KiB) Viewed 12006 times
Re: Two Part Menu
It should be possible to tweak NorList to do this.
Look in layout NorList Dynamic Menu Code for a long line (about line 53) starting:
Amend the <li> bit to be something like (using Demo site and adding a heading above Books):
I've used inline style for ease of testing but you'd probably want to use a class instead.
You'll also want two blockif's (one after the other) to deal with your two requirements so lets do Homeware in green:
I'm using the Section Name for the test in the blockif. Make sure that this Section name is unique (you wouldn't want a sub-section also called Books to mess things up). You could also use SectionID, SectionPageName, etc.
Look in layout NorList Dynamic Menu Code for a long line (about line 53) starting:
Code: Select all
<li><a href=
Code: Select all
<li<actinic:block if="%3cActinic%3aVariable%20Name%3d%22SectionName%22%3e%20%3d%3d%20%27Books%27" > style="color:white; background:red">BOOKS HERE</li><li</actinic:block>>
You'll also want two blockif's (one after the other) to deal with your two requirements so lets do Homeware in green:
Code: Select all
<li<actinic:block if="%3cActinic%3aVariable%20Name%3d%22SectionName%22%3e%20%3d%3d%20%27Books%27" > style="color:white; background:red">BOOKS HERE</li><li</actinic:block><actinic:block if="%3cActinic%3aVariable%20Name%3d%22SectionName%22%3e%20%3d%3d%20%27Homeware%27" > style="color:white; background:green">HOMEWARE HERE</li><li</actinic:block>>
Norman
Re: Two Part Menu
Norman,
Brilliant - that produced the required reult.
![Very Happy :D](./images/smilies/icon_biggrin.gif)
Brilliant - that produced the required reult.
![Very Happy :D](./images/smilies/icon_biggrin.gif)