Forums / Setup & design / Template look change based on user group

"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".

Template look change based on user group

Author Message

Noicokuna Niemoge

Tuesday 17 February 2009 12:43:33 am

Hi;

I wonder if this can be done: I'd like to create different look of forum posts and page comments, depending on user group. For example, admin answers would be highlighted with different background color, etc.

Can this be done in template language? How would you do it? I think the "if" statement should be used, but that's all what I know. :)

Shiki soku ze ku...

Michael Fürst

Tuesday 17 February 2009 3:32:36 am

Hi,

I think that you can get the user group by fetching the user object assigned to a message. Just have a look at the "fetch" functions in the manual.

Regards,
Mike