Re: Moving part of a Tree in other section

2011-10-24 Thread WebbedIT
I asked to see your code twice and Jon has also asked .. if you don't
answer the questions people trying to help you are asking, then you
may find answers to your questions hard to come by!

We cannot debug code we cannot see, but glad you got it working :)

Paul.

On Oct 23, 6:37 pm, Constantin FF  wrote:
> there was another issue in the post ids, after fixing it everything works.
> I'm just updating the parent_id of the post. Is this enough ?
>
>
>
>
>
>
>
> On Sun, Oct 23, 2011 at 8:10 PM, Jon Bennett  wrote:
> > > Just changing the parent_id. How to change the tree also?
>
> > How are you changing the parent_id?
>
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd 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
> > athttp://groups.google.com/group/cake-php

-- 
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


Re: Moving part of a Tree in other section

2011-10-23 Thread Constantin FF
there was another issue in the post ids, after fixing it everything works.
I'm just updating the parent_id of the post. Is this enough ?

On Sun, Oct 23, 2011 at 8:10 PM, Jon Bennett  wrote:

> > Just changing the parent_id. How to change the tree also?
>
> How are you changing the parent_id?
>
> --
> 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
>

-- 
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


Re: Moving part of a Tree in other section

2011-10-23 Thread Jon Bennett
> Just changing the parent_id. How to change the tree also?

How are you changing the parent_id?

-- 
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


Re: Moving part of a Tree in other section

2011-10-23 Thread WebbedIT
We need to see your code, and the error, or we cannot accurately debug
the issue.

On Oct 22, 10:44 am, Constantin FF  wrote:
> Just changing the parent_id. How to change the tree also?
>
>
>
>
>
>
>
> On Sat, Oct 22, 2011 at 12:21 PM, WebbedIT  wrote:
> > What code are you using to move the post with children and what error
> > do you get?
>
> > On Oct 22, 2:48 am, "Constantin.FF"  wrote:
> > > My Post model have Tree behavior, and everything work just fine. Each
> > > post has a parent_id and lft,rght column.
> > > If I create and move posts in single level, everything is OK.
>
> > > But I get an error when I try to move a post which has one or more
> > > children. How to deal with this? Thanks
>
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd 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
> > athttp://groups.google.com/group/cake-php

-- 
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


Re: Moving part of a Tree in other section

2011-10-22 Thread Constantin FF
Just changing the parent_id. How to change the tree also?

On Sat, Oct 22, 2011 at 12:21 PM, WebbedIT  wrote:

> What code are you using to move the post with children and what error
> do you get?
>
> On Oct 22, 2:48 am, "Constantin.FF"  wrote:
> > My Post model have Tree behavior, and everything work just fine. Each
> > post has a parent_id and lft,rght column.
> > If I create and move posts in single level, everything is OK.
> >
> > But I get an error when I try to move a post which has one or more
> > children. How to deal with 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
>

-- 
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


Re: Moving part of a Tree in other section

2011-10-22 Thread WebbedIT
What code are you using to move the post with children and what error
do you get?

On Oct 22, 2:48 am, "Constantin.FF"  wrote:
> My Post model have Tree behavior, and everything work just fine. Each
> post has a parent_id and lft,rght column.
> If I create and move posts in single level, everything is OK.
>
> But I get an error when I try to move a post which has one or more
> children. How to deal with 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