Admin Bar

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.
8/18/2010 1:18:23 PM
Gravatar
Total Posts 9

Admin Bar

Hi,

I was reading about the admin bar here ...

http://www.mojoportal.com/creating-an-admin-toolbar.aspx

And I wondered if it is possible if there is already a Sign Out type of link that inherits from the Web Control as the others do, so the entire bar stays hidden if they aren't already logged in.

I had originally added in this piece, but guess it doesn't inherit like the others (? :) as an empty bar starts to show up when you aren't signed in.

<portal:LogoutLink id="LogoutLink" runat="server" RenderAsListItem="true" />

I did read that it could be put into the footer of the website and it wouldn't show if they weren't logged in, but I'd prefer to keep it in one place for the admin user (with the other admin items).

Thanks!

8/19/2010 2:13:58 PM
Gravatar
Total Posts 18439

Re: Admin Bar

Hi,

Basically the admin toolbar (AutoHidePanel) is looking for any WebControls that have the .Visible property set to true. If it finds none it hides itself. The problem with the logoutlink is that it does have a Visible property and it is true even though it won't render itself if the user is not authenticated. I've fixed this in the source code repository so that it will have Visible = false if the user is not authenticated, so it should work in the next release of mojoPortal.

Best,

Joe

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