all users

Author Message

Mazen Alsibai

Tuesday 08 November 2005 7:11:13 am

Hi:
how can i fetch all users registered in my database?
thanks

Ɓukasz Serwatka

Wednesday 09 November 2005 11:30:38 pm

You can do tree fetch from User accounts

fetch(content,tree ...)

http://ez.no/doc/ez_publish/technical_manual/3_6/reference/modules/content/fetch_functions/tree

But this will be inefficient if you have e.g 15000 users.

All users are in ezuser table, so with one simple SQL query you can fetch data and via custom operator return array then display data using {section} or {foreach}

http://ez.no/products/ez_publish_cms/documentation/development/extensions/template_operator

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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