How do I use multiple siteMaps?

T

Tom

Please forgive me if I have posted to the wrong group. I have been reading
for two days now and everything points to the direction that I can do it but
I can't get any code to work. I an new to .NET so please forgive my
ignorance. Simply put I have a site and the navigation is working fine,
breadcrumb, treeview... Now I just added an "Admin" section (I've got all the
authentication working) and I want to add a few siteMap items to the treeview
ONLY if the user has been authenticated. The link to the "Admin" section is
not public and does not need to be seen by anyone, admin's will know to add
/admin to the url. What I am trying to do is this:

Anonymous users will see:

Home
Item 1
Item 2
Item 3

But Authenticated users I want to see:

Admin Home
Admin Item 1
Admin Item 2
Home
Item 1
Item 2
Item 3

How do I achieve this? I'm lost, I'm new so lots of code will help!

Thanks,
Tom
 
G

Gary Vidal

You could use the roles attribute on the sitemap
where you define the roles for each page.
Or you could use a LoginView control to present the appropriate menus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top