Monday, March 29, 2010

Re: Page Model and TreeBehavior Issue

On Mar 29, 10:18 pm, Andrew <and...@websitesthatdostuff.com> wrote:
> I use getpath() to build my breadcrumbs too, but it will get the wrong
> path sometimes, like this:
>
> Array
> (
>     [0] => Array
>         (
>             [Page] => Array
>                 (
>                     [id] => 821
>                 )
>
>             [_explicitType] => Page
>         )
>
>     [1] => Array
>         (
>             [Page] => Array
>                 (
>                     [id] => 827
>                 )
>
>             [_explicitType] => Page
>         )
>
> )
>
> The page with an ID of 827 should be under 825, not 821.
>

If you don't state the lft and rght field values for all of the nodes
relevant to your question there's little anyone can do to guide you.

AD

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: