2
votes

The "content" section in my "home page" should be a Sign In widget I built, but once signed in I want people to be sent to see a "content" zone that is something they're now permissioned to see. For both pages I want people to be able to just visit my URL without anything after the URL name. (i.e. www.xyz.com) and see different "content" zone whether signed in, or not.

The problem I am facing is that Orchard sets "Authenticated" and "Anonymous" as layers, but what you set on those layers has to be set for every single page on the site. But my "home page" has different stuff happening than other pages on my site.

Is there a way, I can set separate content sections of the home page (i.e. when people just type in the base URL of my site) for both Authenticated and Anonymous?

Thanks.

1

1 Answers

6
votes

A URL should correspond to a resource. Having two different resources behind a single URL, with the GET verb, affects SEO negatively, among other nasty effects. One thing you can do however, is redirect your authenticated users, from your home page, to a separate URL.

If you still want to go ahead with this, you can define your own layers that combine the conditions for home and for authenticated: url('~/') and Authenticated and url('~/') and not Authenticated should do the trick.