Logoff and SiteMapLink inside of AutoHidePanel

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
3/17/2010 2:34:54 PM
Gravatar
Total Posts 156

Logoff and SiteMapLink inside of AutoHidePanel

So I'm creating a custom admin panel and I'm using <portal:AutoHidePanel ID="ah1" runat="server"></portal:AutoHidePanel> in order to have it show up only when user is logged in as an admin.  I'd like to have a Sign out link along with the Site Map in there.  Things work as expected without a SiteMapLink in there.  However, if I try to add a Sitemap link, the admin div doesn't disappear after the user signs off like it should - you can still see the sitemap link.  Shouldn't it get hidden since it's inside of AutoHidePanel?  This is what I have for the code:

 

        <portal:AutoHidePanel ID="ah1" runat="server">
            <div id="admin">
                <portal:LogoutLink id="LogoutLink" runat="server" CssClass="logoff" RenderAsListItem="false" />
                <portal:SiteMapLink id="SiteMapLink1" runat="server" />
                <asp:ContentPlaceHolder ID="pageEditContent" runat="server"></asp:ContentPlaceHolder>
            </div>
        </portal:AutoHidePanel>

3/17/2010 2:44:58 PM
Gravatar
Total Posts 2187

Re: Logoff and SiteMapLink inside of AutoHidePanel

Hello,

The AutoHidePanel doesn't check if the user is an admin or not to determine if they can see the content. It only checks if there is content within it's panel, and if not, it doesn't display at all.

I answered a question about hiding links for non-admin users the other day. You can find it here: http://www.mojoportal.com/Forums/Thread.aspx?thread=5045&mid=34&pageid=5&ItemID=9#post21037.

Please keep in mind that the solution I came up with only hides the links, it doesn't prevent users from manually typing the SiteMap url into their browser and viewing the SiteMap that way. If you want to prevent users from seeing the SiteMap altogether, you will have customize the SiteMap page.

May I ask why you want to hide the SiteMap from users?

HTH,
Joe D.

You must sign in to post in the forums. This thread is closed to new posts.