Hi paul,
Thanks for your reply.
I used your approach and it works! Thanks

Now I had the paginator configured in such a way that the order of the
items is done along a custom field 'order' and not by default along
'id'.
And it seems the find('neighbors') does not allow the indication of an
alternative ordering field.
I tested it trying out both
$this->Showcase->find('neighbors', array('field'=>'id', 'value'=>2,
'order'=>'Showcase.order ASC'));
and
$this->Showcase->find('neighbors', array('field'=>'id', 'value'=>2,
'order'=>'Showcase.order DESC'));
The outcome did not vary.

Any idea how to solve this?

Cheers
Bart




On Mar 13, 10:20 am, WebbedIT <[email protected]> wrote:
> If wanting to show the previous andnextrecords in a dataset whilst
> viewing a particular record the find('neighbours') should do the trick
>
> http://book.cakephp.org/view/73/Retrieving-Your-Data#find-neighbors-811
>
> HTH
>
> Paul

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to