Hello,

Let me explain my problem

table 'posts' was organized as a tree, where the parents are a different 
topic content. While the last child in the branches of the tree is always 
an article.
As you can guess the path between the root and the last child is at 
different depths depending on how the content is organized.

Here are a few examples.

Sports -> Basketball -> Men -> Articles
Sports -> Basketball -> Women -> Articles
Sports -> Basketball -> Team -> Premier League -> Articles
Sports -> Basketball -> Team -> second division -> Articles
Sports -> Recreation -> Articles


What should I do when I click on eg sport that listing of the latest 
articles from all its child categories
Also important to note is required for pagination and content as listed.

I'm not sure what to use TreeBehavior children::method that returns all the 
items,( for example, to make a custom pagination)
http://book.cakephp.org/2.0/en/core-libraries/behaviors/tree.html#TreeBehavior::children

or find ('threaded') which also returns the correct results???

My brain is frozen, just like the icy weather outside :)

Thank you for your advice.
Nikola

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
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].
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to