Monday, October 27, 2008

Re: Using the Tree behavior

The lft and rght values are populated by the tree behavior. I've
written a tutorial on how to use the tree behavior with drag and drop.
It also shows an example of how to populate the tree.

http://blogs.bigfish.tv/adam/2008/02/12/drag-and-drop-using-ext-js-with-the-cakephp-tree-behavior/


On Oct 28, 8:36 am, "rpnu...@gmail.com" <rpnu...@gmail.com> wrote:
> I'm having trouble using the Tree behavior. Exactly from where do I
> get the 'lft' right 'rght' values? I can't figure out what these
> values could be.
>
> For example:
>
> (Parent 1) Category 1
> (Child of Parent 1) Category 1.1
> (Child of Parent 1) Category 1.2
> (Parent 2) Category 2
> (Child of Parent 2) Category 2.1
> (Child of Category 2.1) Category 2.1.1
>
> How would I get along doing something like that? I'm trying to create
> a simple CMS for my website, and there has to be an automated way of
> finding these 'lft' and 'rght' values.
--~--~---------~--~----~------------~-------~--~----~
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: