I don't think you require Tree for this. Have a look at TagBehavior for one way to do this.
http://bakery.cakephp.org/articles/view/simple-tagging-behavior Otherwise, a common way to do this is to create a table of categories and another categories_posts, then associate Post HABTM Category. If you search "CakePHP post category" you'll probably come up with lots of info, as this is a pretty common thing. On Wed, May 20, 2009 at 4:50 AM, ntw <[email protected]> wrote: > > I just want to simply categorize my content. > Like Wordpress - content categorizing in categories. > Tree is kind of explained, but I still have no idea how to make a > navigation from categories ( click category "PHP"and get my blog posts > about PHP etc.). > I am really noob in MVC's and OOP, so this is confusing for me. > > > On 19 maijs, 00:56, brian <[email protected]> wrote: >> On Mon, May 18, 2009 at 4:52 PM, [email protected] <[email protected]> wrote: >> >> > Hey. >> > I am pretty confused with CakePHP's Tree, I actually do not have a >> > clue how to categorize my content with tree. I tried a few ways, >> > almost did it, but still having trouble with it. >> > Maybe someone could write a tutorial or link me to a tutorial outside >> > cakePHP's bakery. >> > Thankyou. >> >> Maybe you could explain what kind of data you have, along with at >> least a *hint* of what you want to do. > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
