This project is read-only.

Hide the Sign In link?

Topics: Customizing Orchard
Feb 28, 2012 at 12:37 PM

Is it possible to hide the Sign In link, at the top of each page? 

For security reasons, I'd like to hide it. Perhaps it's a CSS Setting?

Sorry for the newbie question. I searched for "hide sign in" and "sign in link" with no luck.

Thanks for the help!  

Feb 28, 2012 at 4:41 PM

Since you said "at the top of each page" I assume you are not using the default ThemeMachine theme (because that theme has the Sign In link at the bottom of each page). Do you know which theme you are using?

Regardless of which theme it is, it's most likely done in the same way that the ThemeMachine does it. Which is it dynamically adds a shape to a zone in the theme's Layout file. If you look at Views/Layout.cshtml in TheThemeMachine, you'll find this line of code around line 48:

WorkContext.Layout.Footer.Add(New.User(), "10");
That's adding the User shape into the Footer zone of the layout on every page. The User shape is what contains the Sign In/Sign Out links. You'll probably find very similar code to this (probably just using a different zone) in your theme. Remove it and it will remove those links.

Mar 2, 2012 at 11:05 AM
Edited Mar 2, 2012 at 11:06 AM

Hi kevink

I'm using the Mango theme.

Not sure why I didn't get notice of this reply. Thanks for that tip. Will definitely check that out :)