First of all I'm using the navigation package from http://packages.maliciousthinktank.com/navdemo.aspx which I've managed to get working fine. The only problem is that I've seen people around the forums mention it's best to structure the site so that there's a 'home' node at the top, and then all other pages beneath this node.
For example.. i have a site which should be:
- Home
- About
- Contact
- Articles
-- Article Type 1
-- Article Type 2
etc..
but since I've put all nodes beneath my home node it now looks like this:
- Home
-- About
-- Contact
-- Articles
--- Article Type 1
--- Article Type 2
This is fine except a) I'm not sure why this is recommended and b) how do I include the home node within the navigation as it doesn't seem to allow this - I can only show children.
I had a look at the XSLT to see if I could change it but it was pretty complex and I didn't want to screw it up. I did manage to hard code a
navigation and site structure
First of all I'm using the navigation package from http://packages.maliciousthinktank.com/navdemo.aspx which I've managed to get working fine. The only problem is that I've seen people around the forums mention it's best to structure the site so that there's a 'home' node at the top, and then all other pages beneath this node.
For example.. i have a site which should be:
- Home
- About
- Contact
- Articles
-- Article Type 1
-- Article Type 2
etc..
but since I've put all nodes beneath my home node it now looks like this:
- Home
-- About
-- Contact
-- Articles
--- Article Type 1
--- Article Type 2
This is fine except a) I'm not sure why this is recommended and b) how do I include the home node within the navigation as it doesn't seem to allow this - I can only show children.
I had a look at the XSLT to see if I could change it but it was pretty complex and I didn't want to screw it up. I did manage to hard code a
So basically, can anyone explain to me why it's best to structure your site beneath a single node and also, how to fix my menu problem above?
Thanks :)
$currentPage/ancestor-or-self::node[@level<2]
Maybe this is you want
is working on a reply...