Remove 'sign in', but keep 'dashboard' and 'sign out'

Topics: Customizing Orchard
Jul 12, 2012 at 6:39 PM

I removed this line from my theme:

WorkContext.Layout.Footer.Add(New.User(), "10"); // Login and dashboard links

Because I don't want to display it on the public website.

How ever, if the user is logged in, it would be nice to show a link to the dashboard and to 'sign out'.

What's the best way to go about this?

Coordinator
Jul 12, 2012 at 6:52 PM
Edited Jul 12, 2012 at 6:53 PM

Sure, test if the user is logged in.

Jul 13, 2012 at 11:42 AM

Hi Bertrand, thanks for your reply.

 

I realise that, perhaps I wasn't clear enough. How do I go about doing that, a link to some documentation would be fine.

 

Thanks

James

Coordinator
Jul 13, 2012 at 11:56 AM

It's right there in the default user.cshtml template:

@if (WorkContext.CurrentUser != null) {

Jul 13, 2012 at 12:00 PM
Edited Jul 13, 2012 at 12:06 PM

Great, thanks Bertrand!

On 13 July 2012 12:56, bertrandleroy <notifications@codeplex.com> wrote:

From: bertrandleroy

It's right there in the default user.cshtml template:

 

@if (WorkContext.CurrentUser != null) {