Homepage for anonymous and authenticated users possible?

Topics: Customizing Orchard
Apr 6, 2013 at 12:49 PM
I would like to have a HOME page where:
  1. The title is always the same for anonymous and authenticated users.
  2. anonymouse users see a photo and a piece of text
  3. authenticated users see a photo and other text and also see text inside the Tripe Zones.
In essence: I want a homepage with the same header where anonymous users only see a phote and some text and where authenticated users see a photo and other text and where the title of the header is the same, and where the tripel zones have text only for authenticated users.
Is this possible, thanks for your answers
Apr 6, 2013 at 1:13 PM
Edited Apr 6, 2013 at 2:08 PM
You can achieve using a different Layers on top of the HomePage for anonymous users and other for the authenticated users.

For example you would need 2 Layers with this rules:

Layer Homepage auth : url '~/' and authenticated

Layer Homepage anons: url '~/' and not authenticated

read the docs
Apr 6, 2013 at 1:40 PM
I was not aware that you could have a layer with both an url plus another layer.
This will solve my points. Thanks!
Apr 6, 2013 at 1:52 PM
I've used: url('~/') AND authenticated
There must be somthing wrong with this syntax, since i do get an error:
The rule is not valid: Syntax error: Unexpected token in primary expression (Token 'Identifier' (AND) at position 10)
How should it be?
Apr 6, 2013 at 1:55 PM
Edited Apr 6, 2013 at 1:56 PM
not authenticated and url '~/'

authenticated and url '~/'
Case sensitive issue.

This should work.
Apr 6, 2013 at 2:05 PM
Oke, i found the right syntax:
(not authenticated and url ("~/")) or authenticated
Apr 6, 2013 at 2:06 PM
We crossed each other and your example is more clear. Thanks