tags:

views:

123

answers:

1

I don't know if I'm going the right way with the tree behavior but I'm trying to build a comment system for a blog. I would like to have an indentation of 5 level depth.

The generatetreelist method looks like it would be the fastest way to accomplish this but it doesn't look like you can add fields to the query. Am I right ? Is there a way to modify the method ?

Thanks

A: 

If it was me, I would just do this in the result set. As you get a numeric array in the first dimension of the results you could use that when outputting the data to indent or add a class to your comments as you needed.

DavidYell
Not sure I understand. You would not use the tree behavior? Or only the Article has many ArticleComment relationship.
Sabourinov