the issue became a bit more complicated. Here is what I need as a
result.
I have the Post Model which behave as a Tree, and also every post has
a parent or for the first level the parent is 0. Also every post has a
sort number which helps for them to be sorted.
I wold like to display paginated results but the order to be as
follows:
First to be the post with lower sort number followed by it's children
(again sorted by their sort number), next grandchildren again sorted
and so on...
Next to be the second post with its children and so on ....

I'm looking for the most appropriate way to do this. If I get the
generatetreelist the results are not ordered the way I need but just
ordered by ID and also not paginated. And if I try to display the
posts results , I can sort them only by one criteria and I need them
sorted by parent_id and sort number while keeping them groped by
parent_id.

Please if someone can give an idea how to solve this. Thanks

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to