Custom autonav
PermalinkIs this possible is so any clues as to how it might be achieved. Many thanks
David
My suggestion is to replace the other two sections of hard-coding with two new Areas that you can add the auto-nav block to.
You would also change your Sitemap to something like this:
Home
-The Duchy Store
--Home
--About
--Search
-Duchy Products
--Fencing
--...
-Building and DIY
--Sheet Material
--...
When you add the Auto-nav block to each of those three areas, it allows you to "Display Pages" from beneath a certain page, so you would select Beneath a particular page from the select box and then select each corresponding section page (i.e. The Duchy Store, Duchy Products or Building and DIY)
The auto-nav will then place a list of every page under the particular section within that Area. Repeat for each section.
I'm probably making it more confusing than it needs to be.
- Create three areas in your template under each section heading.
- Create the structure I outlined above in your Sitemap.
- Add an auto-nav block to each of the three areas and set it to pull in pages under the particular page for that area.
1. Create a custom menu, using Sitemap and Page Aliases, and display that with autonav block.
2. Create an attribute, say autonav_group, and use that to determine which group the link should be in. Then use a custom template to display the links the way you want.