Detect if page is connected to master page nav list

42 views
Skip to first unread message

Joel Kinzel

unread,
Jun 22, 2012, 10:36:59 AM6/22/12
to reddot-c...@googlegroups.com
I was wondering if anyone has successfully used render tags to detect if a page is connected to a master page's navigation list or not?

The scenario is that we have some pages that will either be connected to navigation lists of other master pages, or to lists on non-master pages. 

Looking forward to hearing ideas.

Jian Huang

unread,
Jun 22, 2012, 1:43:50 PM6/22/12
to reddot-c...@googlegroups.com
Joel,

navigation emulation code should suite your need

http://simplyreddot.blogspot.com/2011/12/navigation-emulation.html

Joel Kinzel

unread,
Jun 29, 2012, 11:07:16 AM6/29/12
to reddot-c...@googlegroups.com
Jian,

Thanks, but I'm looking more specifically to see if I can find the name of the current page's main link element (if that makes sense). Right now I'm using Context:CurrentPage.MainLink.Name and then testing that against a string of our common navigation list name. I was hoping I could some how get some sort of boolean back on a render tag like: Context:CurrentPage.MainLink.IsNavigationList() or something along those lines. For now, I think the string compare will work, but just seeing if there was a better way to detect if the main link element was a navigation manager list or not. 

Joel Kinzel

unread,
Jun 29, 2012, 11:08:42 AM6/29/12
to reddot-c...@googlegroups.com
Also, just wanted to add thanks for the link. Although it didn't get me to where I wanted on this particular question, it is applicable to another problem I'm working on! 


On Friday, June 22, 2012 12:43:50 PM UTC-5, Jian Huang wrote:
Reply all
Reply to author
Forward
Message has been deleted
0 new messages