Fetching a class group

Fetching a class group

Tuesday 10 August 2004 12:55:45 am - 4 replies

Modified on Tuesday 10 August 2004 12:56:08 am by Valentina Ferrari

Author Message

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

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

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