|
Home > Archive > Microsoft Content Management Server > November 2006 > Build Menu from channel list
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Build Menu from channel list
|
|
| joao.vera.almeida@gmail.com 2006-11-29, 7:23 am |
| Hi,
I use a channel structure with its children to build a multi-level
menu. All these channels have guest rights as this site is public with
no authentication. So far, normal stuff.
I have now been asked to create several areas where only a set of user
groups can access. I wanted to change the channel permission from Guest
to XPTO user group. This way I could use my structure as always and use
CMS authentication to protect the pages.
As you can imagine, if I do so, the channel won't appear on the menu
when the user opens the page before authentication...and I need that
menu entry to appear all the time.
I know I could create a menu entry for the login page access and other
structure to hold the pages, but that would go against my whole
structure and I would need to change my other templates.
So, what I ask you (even imagining the answer) is if there is a way my
template can bypass user rights on channels only to list them in the
menu. I didn't want to impersonate a "Menu user" because I don't want
to store the user credentials in a web.config... If the sys admin
deleted the user or changed its password the menu would be gone.
Thank you in advance,
Joao Almeida
| |
| Stefan Goßner [MSFT] 2006-11-29, 7:23 am |
| Hi Joao,
bypassing authorization is not possible.
But you could create a CmsApplicationContext, authenticate using a user that
is allowed to see the item in the menu control and use this context to
retrieve the item.
Don't forget to dispose the CmsApplicationContext afterwards:
http://blogs.technet.com/stefan_gos.../07/386526.aspx
Cheers,
Stefan
<joao.vera.almeida@gmail.com> wrote in message
news:1164802770.599145.9750@l12g2000cwl.googlegroups.com...
> Hi,
>
> I use a channel structure with its children to build a multi-level
> menu. All these channels have guest rights as this site is public with
> no authentication. So far, normal stuff.
>
> I have now been asked to create several areas where only a set of user
> groups can access. I wanted to change the channel permission from Guest
> to XPTO user group. This way I could use my structure as always and use
> CMS authentication to protect the pages.
>
> As you can imagine, if I do so, the channel won't appear on the menu
> when the user opens the page before authentication...and I need that
> menu entry to appear all the time.
>
> I know I could create a menu entry for the login page access and other
> structure to hold the pages, but that would go against my whole
> structure and I would need to change my other templates.
>
> So, what I ask you (even imagining the answer) is if there is a way my
> template can bypass user rights on channels only to list them in the
> menu. I didn't want to impersonate a "Menu user" because I don't want
> to store the user credentials in a web.config... If the sys admin
> deleted the user or changed its password the menu would be gone.
>
> Thank you in advance,
> Joao Almeida
>
|
|
|
|
|