Fetching only certain nodes

Fetching only certain nodes

Monday 21 July 2003 12:24:30 pm - 8 replies

Author Message

Bård Farstad

Monday 21 July 2003 1:41:20 pm

You're right. This is not implemented in 3.1, you need 3.2 to be able to do this.

You can always patch this backwards, but I would rather recommend waiting for the 3.2 release.

--bård

Documentation: http://ez.no/doc

Esben Maaløe

Monday 21 July 2003 2:30:36 pm

Thnx - sorry for sounding so negative, I really enjoy working with the new eZPub

I can't wait for the 3.2 release - I have a deadline in a week, so I'll have a go at patching - could you give me a hint as to where the fetch function is implemented ?

Tim Achnitz

Tuesday 22 July 2003 2:09:48 am

Hi,

are you talking about the possibility to sort objects on the basis of some of their attributes, for example by one element of an Enum?
Did I understand it right or is my English just too bad?

In case, I would also be very interested how you can do that in eZ Publish. thx

Esben Maaløe

Tuesday 22 July 2003 4:51:07 am

Yes that's it

http://ez.no/developer/ez_publish_3/documentation/development/libraries/ez_template/operators/data_fetch

If you go there you can read about filtering and sorting with the fetch function.

As it is right now (3.1) you can only sort on the generic attributes that all objects have such as name - publish date etc... If you want to sort or filter by some custom attribute (like the value of an enum field) you will have to use 3.2.

I've tried to locate the php files that implements the fetch function. It might be possible to patch the 3.2 functionality into 3.1.. But I can't find them - still searching though.

Tim Achnitz

Wednesday 23 July 2003 5:07:02 am

Did you have any succuss with this?

Esben Maaløe

Wednesday 23 July 2003 8:59:49 am

Not yet - I will post here as soon as I do

meanwhile - dear someone: Which files are responsible for the template function 'fetch' ?

Tim Achnitz

Thursday 24 July 2003 2:06:14 am

Generally you can find the functions/parameters for "fetch" in /kernel/content/function_definition.php, for example the function "list" links to /kernel/content/ezcontentfunctioncollection.php ...

Esben Maaløe

Thursday 24 July 2003 3:43:03 pm

I've been hard at work with images and other stuff - so as of yet - no luck on my side... any luck on yours ?

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.