neil.gittins-hotmail
-
6/14/2010 7:37:20 AM
ASPX Pages - Menu Item visibility for non-authenticated users
I have set up a very simple test website in Kentico with a few portal pages and a couple of my own ASPX pages which use a master template from the CMS website.
Everything works fine, so then I was experimenting with security in order to hide certain menu items for non-authenticated users. This works OK on the portal pages, but not when I click on my ASPX pages. I have set the menu webpart in CMS to check permissions and have the following permissions set up.
Home - (Portal Page) Public Anonymous User Allow Read About - (Portal Page) Public Anonymous User Allow Read Login - (ASPX Page) Public Anonymous User Allow Read Calendar (ASPX Page) Public Anonymous User Deny Read CMS - (Portal Page) Public Anonymous User Deny Read
When I first launch the website I see only the Home, About and Login pages which is what I want. But when I click on the Login page the Calendar and CMS menu items become visible too. I have set the cmsmenu webpart up in my ASPX page template (for the Calendar and Login pages) as follows:
<uc1:cmsmenu runat="server" ID="cmsmenu" Visible="true" Path="/%" MaxRelativeLevel="2" SelectOnlyPublished="true" CSSPrefix="horizontal;horizontalsub" Cursor="Pointer" HighlightAllItemsInPath="true" Layout="horizontal" RenderImageAlt="true" Padding="0" Spacing="0" CheckPermissions="true" ClassNames="CMS.MenuItem" />
As you can see, I have the CheckPermissions set "true" to in my template. Is there anything else I need to do so that Kentico will apply the permissions correctly when I view the ASPX pages?
Thanks,
Neil.
|