AutoNav at a deep level
Permalink
Hello!
I've got a site that I'm working that has a TON of levels and I'm at a stand still with hard coding a nav and was hoping someone might have a tip as to coding it. Here's what I've got as a nav:
Top Level 1
Top Level 2
>Sub page 1
>Sub page 2
>>Sub Sub page 1
>> Sub Sub page 2
I'm trying to get it where the auto nav will display....
Sub page 2
- Sub sub page 1
- Sub sub page 2
So basically it's an auto nav at 4th level (dun, dun, duuuun). I can't even for the life of me figure out how to even display the nav and have it work where it will display the same nav when I'm on one of the Sub Sub pages. Anyone got any tips? Thanks!
I've got a site that I'm working that has a TON of levels and I'm at a stand still with hard coding a nav and was hoping someone might have a tip as to coding it. Here's what I've got as a nav:
Top Level 1
Top Level 2
>Sub page 1
>Sub page 2
>>Sub Sub page 1
>> Sub Sub page 2
I'm trying to get it where the auto nav will display....
Sub page 2
- Sub sub page 1
- Sub sub page 2
So basically it's an auto nav at 4th level (dun, dun, duuuun). I can't even for the life of me figure out how to even display the nav and have it work where it will display the same nav when I'm on one of the Sub Sub pages. Anyone got any tips? Thanks!
![mhawke](/files/avatars/64712.jpg)
Perhaps I misunderstand what you are trying to achieve but can't the standard C5 'autonav' block be set to start at any number of levels below the top level?
I could but I really wanted to use the API to do it. Maybe the Concrete5 Auto Nav block is my only option.... :-S Thanks for your input!
Hey, I don't want to spoil your fun!
Have a look at the code behind how the AutoNav works. I gather it's been re-worked several times over the years by some pretty good C5 minds so I'm sure there's some good information in there.
Have a look at the code behind how the AutoNav works. I gather it's been re-worked several times over the years by some pretty good C5 minds so I'm sure there's some good information in there.
Ha! You're not spoiling my fun, but I thought it might be worth asking. I'll check out the code behind AutoNav. Thanks!