Registered users

Author Message

David Santiso

Saturday 12 February 2011 10:05:40 am

Hi,

What function returns all registered users?

Thanks,

David

Bertrand Dunogier

Saturday 12 February 2011 10:53:42 am

{fetch( content, list, hash( 'parent_node_id', 4, class_filter_type, 'include', class_filter_array, array( 'user' )} should do it.

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

David Santiso

Saturday 12 February 2011 11:22:49 am

It shows nothing, are you sure that is the node 4?

If I put this:

{def $users=fetch( 'content', 'list', hash( 'parent_node_id', 5))}
{foreach $users as $user}
{$user.name}
{/foreach}

It shows the user groups names.

Thiago Campos Viana

Saturday 12 February 2011 11:30:37 am

{def $users=fetch( 'content', 'list', hash( 'parent_node_id', 5,class_filter_type, 'include', class_filter_array, array( 'user' ),'depth', 3))}
{foreach $users as $user}
{$user.name}
{/foreach}

You missed 'depth': http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Modules/content/Fetch-functions/list

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

Bertrand Dunogier

Sunday 13 February 2011 6:38:25 am

My god, I'm ashamed. Note that I did this out of memory only, and don't write that much templates these days ;-)

Good to see you guys are following up :p

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

David Santiso

Saturday 19 February 2011 8:32:23 am

And how can I access the latest contributions made on the web?

And how can I access her login, email and other user account data?

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 04:56:20
Script start
Timing: Jan 18 2025 04:56:20
Module start 'layout'
Timing: Jan 18 2025 04:56:20
Module start 'content'
Timing: Jan 18 2025 04:56:21
Module end 'content'
Timing: Jan 18 2025 04:56:21
Script end

Main resources:

Total runtime1.2769 sec
Peak memory usage4,096.0000 KB
Database Queries69

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 587.7969152.6094
Module start 'layout' 0.00590.0022 740.406339.4219
Module start 'content' 0.00811.2671 779.8281614.5156
Module end 'content' 1.27520.0017 1,394.343816.1875
Script end 1.2769  1,410.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.2799160.0002
Check MTime0.00180.1388160.0001
Mysql Total
Database connection0.00120.090510.0012
Mysqli_queries1.215095.1481690.0176
Looping result0.00090.0674670.0000
Template Total1.244197.420.6220
Template load0.00260.203520.0013
Template processing1.241597.222320.6207
Template load and register function0.00020.013510.0002
states
state_id_array0.00100.079210.0010
state_identifier_array0.00140.111420.0007
Override
Cache load0.00220.1720270.0001
Sytem overhead
Fetch class attribute can translate value0.00070.057030.0002
Fetch class attribute name0.00120.092280.0001
XML
Image XML parsing0.00110.087230.0004
class_abstraction
Instantiating content class attribute0.00000.001590.0000
General
dbfile0.00140.1062220.0001
String conversion0.00000.000840.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs