Forums / Setup & design / Specific pagelayout for connected user

Specific pagelayout for connected user

Author Message

Pascal France

Thursday 23 February 2006 11:56:18 am

Hi,

I would like to set up specific designs for specific user groups
I tried to create an override like that:

    598 [pagelayout_connecte]
    599 Source=pagelayout.tpl
    600 MatchFile=pagelayout_connecte.tpl
    601 Subdir=templates
    602 Match[node]=xxx

where xxx is the number ID of a user group or a user.
I tried Match[parent_node]=xxx without success too.

It seems it's not the good way to do what I want.

Thanks for your help

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Roy Bøhmer

Friday 24 February 2006 3:09:36 am

Hi Pascal!

As far as I know you can't override based on logged in users.

My suggestion would be to edit pagelayout.tpl and include appropriate css-files and other includes based on the users usergroup. I haven't done it my self, but that information about current user should be pretty stright forward to access in the templates using $current_user in pagelayout.
See http://ez.no/doc/ez_publish/technical_manual/3_6/templates/the_pagelayout/variables_in_pagelayout

I hope someone else has a better solution, because this is defenitly not a nice way to do it if your designs are very different.

Roy