Forums / Setup & design / Specific pagelayout for connected user

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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