eZ Community » Forums » eZ Publish 5 Platform » UserGroup tree and Criterion

UserGroup tree and Criterion

UserGroup tree and Criterion

Monday 10 June 2013 3:44:21 pm - 3 replies

Hello, I'm trying to make a Query on user groups. I have an array of Id I know, and I need to retrieve all child group with an id in the array.

I noticed that a UserGroup class have a "parentId" value that I can read within a controller. I can't figure out which Criterion tu use to get UserGroup with this "parentId".

What would be the proper way to achive this in an EzPublish 5 style ?


Monday 10 June 2013 4:44:55 pm

You simply have to use the Location related criteria to be able to accomplish all the normal location based queries.

Tuesday 11 June 2013 10:07:15 am

Yeah, seems to be the thing to do.

So can I retrieve all childrend (including subchildren) from a given node, which belongs to a given content type ?

I can't manage to find out which criterion to use for this...

Tuesday 11 June 2013 10:10:48 am

You can begin with : https://confluence.ez.no/display/EZP/2.+Browsing%2C+finding%2C+viewing 

And this : https://github.com/dspe/ez5_cheatsheet/blob/master/eng/search.md

Modified on Tuesday 11 June 2013 10:12:18 am by Nicolas Lescure


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from