Fetching a class group

Author Message

Valentina Ferrari

Tuesday 10 August 2004 12:55:45 am

Hi all!
I would like to fetch the classes list inside a group of classes.

For example:

I would like to fetch all the classes inside the 'Media' class group.

TIA,
Valentina

steve walker

Tuesday 10 August 2004 1:13:53 am

Hi,

Not sure if its exactly what you want, but to filter on classes within a fetch add the code:

class_filter_type, "include", class_filter_array, array(x)

where x equals the ID of the class you only want to fetch on.

Steve.

http://www.oneworldmarket.co.uk

Valentina Ferrari

Tuesday 10 August 2004 1:30:28 am

Hi Steve,
I don't want to fetch a class by ID but I want to fetch all the classes inside a class group like the admin interface in the configuration/classes section.
So I need to know class group node.

Thanks,
Valentina

steve walker

Tuesday 10 August 2004 9:55:07 am

Valentina,

I havent done what you're trying to do... but if I were in your position:

I don't want to fetch a class by ID but I want to fetch all the classes inside a class group like the admin interface in the configuration/classes section.

I'd find the template that controls configuration/classes section and find the code they're using in there to create the fetch you're after.

Enable the template debug for the admin site if you have trouble finding which template is being utilised.

Regards, Steve.

http://www.oneworldmarket.co.uk

Bård Farstad

Tuesday 10 August 2004 10:26:54 am

Steve, there is actually no fetch function to get content classes based on group id (yet). This can be made as a template operator extension though.

--bård

Documentation: http://ez.no/doc

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