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}

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 20:57:27
Script start
Timing: Jan 18 2025 20:57:27
Module start 'layout'
Timing: Jan 18 2025 20:57:27
Module start 'content'
Timing: Jan 18 2025 20:57:28
Module end 'content'
Timing: Jan 18 2025 20:57:28
Script end

Main resources:

Total runtime0.6822 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.0469152.6406
Module start 'layout' 0.00480.0028 740.687539.4766
Module start 'content' 0.00760.6725 780.1641459.4219
Module end 'content' 0.68010.0020 1,239.58598.1250
Script end 0.6821  1,247.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4813160.0002
Check MTime0.00130.1968160.0001
Mysql Total
Database connection0.00070.108610.0007
Mysqli_queries0.637393.4198520.0123
Looping result0.00050.0780500.0000
Template Total0.649995.320.3250
Template load0.00230.338520.0012
Template processing0.647694.929620.3238
Template load and register function0.00020.027610.0002
states
state_id_array0.00090.126510.0009
state_identifier_array0.00200.300220.0010
Override
Cache load0.00180.2677150.0001
Sytem overhead
Fetch class attribute can translate value0.00080.117710.0008
Fetch class attribute name0.00120.171430.0004
XML
Image XML parsing0.00200.298310.0020
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00340.4921160.0002
String conversion0.00000.001540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs