Tuesday, September 29, 2009

HABTM and multiple level

I need to tag some "record", say picture, with a tree-like model.

I have a pictures model and a category model.

The category model has 3 fields connected as a tree:

cat1
cat2
cat3

The tree structure could be:

art
painting
minimalism
expressionism
...
sculpture
nature
trees
flowers
roses
...

When I enter a new "picture" I'd like to be able to select many "tags"
from category, say, art-painting-expressionism and nature-trees.
And I'd like to be able to select each category tag using cascading
select boxes.

Is there a natural way to bake this in cakephp?

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

No comments: