Forums / Setup & design / How to show a group of current logged 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".

How to show a group of current logged user???

Author Message

danny36 danny36

Tuesday 06 July 2004 12:47:29 am

I show the attribute groups with this code:
{fetch(user, current_user).groups|attribute(show)}

but now I want to show only id of group (node_id) of current user.
somebody help me?!

special thanks

danny36 danny36

Tuesday 06 July 2004 2:32:07 am

this code show "Object ID" of current logged user group:

{let user=fetch( 'user', 'current_user' )}
{$user.groups[0]}
{/let}