Monday, March 29, 2010

Re: Page Model and TreeBehavior Issue

> I've got a Pages model that I'm using the TreeBehavior for a
> hierarchy. I'm having issues, though, with the breadcrumbs coming
> through incorrectly. It seems that every time I call verify(), I get
> this sort of result:
>
>    [0] => Array
>        (
>            [0] => node
>            [1] => 827
>            [2] => right greater than parent (node 825).
>        )
>
> However, here's the node info in the DB:
>
>        parent: 825
>        lft: 208
>        rght: 209
>
> I've tried clearing all the left and right nodes in the DB and then
> calling recover(), but that doesn't seem to help at all. Am I missing
> some function that I need to be calling? Thanks.

What does getpath give you? I use that to generate breadcrumbs.

J


--
jon bennett - www.jben.net - blog.jben.net

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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

To unsubscribe from this group, send email to cake-php+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

No comments: