Hi Nathan,
if the structure is always as shown you can create a navigation area with:
Level 1-2 (on) : only <navigation:nextlevel> in the template
Level 3 (on+off): Show Link and Name of page (you could check if 
CurrentIndex.Id == LastIndex.Id if you want to highlight C2 in your example)


If the structure is different (different levels where to highlight) I would 
do it like this:
Get the depth of the Navigation structure for the page (e.g. create a 
navigation area that is only for the active pages and stores in each page 
the <%!! Context:CurrentDepth !!%>, maybe also consider hidden pages or 
whatever your navigation logic is like).
Then for left nav:
Level 1-99 (on): 
- If CurrentIndex.Id != LastIndex.Id then <navigation:nextlevel> (we are 
above the current page in nav)
- Else: Output data (this is the current page)
Level 1-99 (off):
- If <%!! Context:CurrentDepth !!%> == maxdepth -> Show link+page (sister 
pages)


I do not know of an easier way to get the max depth of the navigation 
(especially if you have to consider pages not displayed in nav).

Best,
Hilmar



Am Dienstag, 23. September 2014 22:43:48 UTC+2 schrieb Nathan Daugherty:
>
> I'll do my best to explain. I have a site and it has a left nav that is 
> supposed to show all the sister links to the current page. In the main 
> navigation, my structure is like this...
>
> Main Nav
>    - Category A
>       - Link A1
>       - Link A2
>       - Link A3
>       - Link A4
>    - Category B
>       - Link B1
>       - Link B2
>       - Link B3
>       - Link B4
>    - Category C
>       - Link C1
>       - Link C2
>       - Link C3
>       - Link C4
>
> So when I'm on link C2 page, I want the left nav to show all links in the 
> C group only. 
>
> any ideas how I can do this?
>

-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reddot-cms-users+unsubscr...@googlegroups.com.
To post to this group, send email to reddot-cms-users@googlegroups.com.
Visit this group at http://groups.google.com/group/reddot-cms-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to