How to get the next or previous data from a fetch.

Author Message

Pablo C. Vergara Castro

Wednesday 15 December 2004 3:43:43 pm

I to all.

In my code I have to fetch a folder that have any object's but the same code have to "take diferent decisions" if the next object have an attribute with a value x, but I don't know how to get the next object attributes staying in the actual object.

I try to explain with a example:

In my folder I have this objects:

(attx=>Attribute Number x, and the next character is the value)

1) att1=>a att2=>2 att3=>0
2) att1=>b att2=>4 att3=>0
3) att1=>a att2=>1 att3=>1
4) att1=>b att2=>5 att3=>0

When I fetch the folder, to take the diferent values of the object's I will use a "section loop=xxx" and I need to know if the att3 of the next object will be 1.

Can somebody help be?.

Pablo C. Vergara Castro

Thursday 16 December 2004 11:08:33 am

Why never helps me nobody?

Pablo C. Vergara Castro

Sunday 19 December 2004 3:51:28 pm

It would be thankful that if cannot be done what I have asked somebody said to me that with ezPublish that cannot either be done (like grouping by fields that is not of type date/time)

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