filter fetch on object creator

Author Message

James Ward

Tuesday 05 August 2008 11:04:41 am

Is it possible to fetch a group of objects based on the user which created them? I'm trolling the documentation but not seeing anything.

working at www.wardnet.com
blogging at www.jamesward.ca

James Ward

Tuesday 05 August 2008 11:25:08 am

Looks like I should be able to do this but the documentation is a little confusing.

"The ID number of the object representing the user who initially created the object (the "owner_id" attribute of the corresponding "ezcontentobject" object). "

Does that mean I am filtering using the node_id of the creator user object or the object_id of the creator user object? I'm testing now and not having much luck. An example would be nice.

working at www.wardnet.com
blogging at www.jamesward.ca

Maxime Thomas

Thursday 28 August 2008 11:19:03 pm

Hi,

You can try a list fetch with an attribute filter wither the owner variable set.

http://ez.no/doc/ez_publish/technical_manual/4_0/reference/modules/content/fetch_functions/list

It will fetch nodes directly under the node you provide from the same user (owner).

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

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