I am building a site for a client, the site hosts various seperate sports clubs and respective sports. So we have a content structure something like this:
Content - Main Holding Site -- Club 01 --- Club Sport 0101 -- Club 02 --- Club Sport 0201 --- Club Sport 0202
I am trying to edit the Runway Drow Down navigation XSLT to enable me to have a different parent depending on where you are so a Club and ClubSport could have different navigations. For the sake of explaining this I have created four document types:
Main Club ClubSport TextPage
There is only one Main, Clubs can only be directly under Main, ClubSports can only be directly under Clubs, TextPages can be in any on the other three and TextPages can be within TextPages.
I know that when $currentPage is @level=1 then we are at Main and so that is the parent.
My problem is that when we're at anything other than @level=1 I could be (say when @level=2) on either a TextPage or Club and I can't figure out how to tell. I'm trying to go through some "whens" to test for the three or so different scenarios:
and I know this must be straightforward but I just can't see it! Aaarggh!
There's a bit more to this but if I can get this bit then I can probably figure the rest out myself (he says confidently...). Anyone have any much appreciated thoughts?
Changing root of Runway Dropdown Nav
A little help please...
I am building a site for a client, the site hosts various seperate sports clubs and respective sports. So we have a content structure something like this:
Content
- Main Holding Site
-- Club 01
--- Club Sport 0101
-- Club 02
--- Club Sport 0201
--- Club Sport 0202
I am trying to edit the Runway Drow Down navigation XSLT to enable me to have a different parent depending on where you are so a Club and ClubSport could have different navigations. For the sake of explaining this I have created four document types:
Main
Club
ClubSport
TextPage
There is only one Main, Clubs can only be directly under Main, ClubSports can only be directly under Clubs, TextPages can be in any on the other three and TextPages can be within TextPages.
I know that when $currentPage is @level=1 then we are at Main and so that is the parent.
My problem is that when we're at anything other than @level=1 I could be (say when @level=2) on either a TextPage or Club and I can't figure out how to tell. I'm trying to go through some "whens" to test for the three or so different scenarios:
I think I need to be doing something like this:
and I know this must be straightforward but I just can't see it! Aaarggh!
There's a bit more to this but if I can get this bit then I can probably figure the rest out myself (he says confidently...). Anyone have any much appreciated thoughts?
Thanks,
Alex
@Admins: This is a double post. The other one.
is working on a reply...