Forum OpenACS Development: Re: Need some help with tree_sortkey

Collapse
Posted by Jade Rubick on
I added a section to the documentation that details how to use tree_sortkey with acs_objects to do hierarchical queries. I took snippets provided by Tom and Don and explain how to use context_id and make common queries, such as finding children, etc...

I'm now facing a situation where I have a table that is not a subclass of acs_objects. I face the choice of either adding in tree_sortkey support (which sounds like a lot of work, and uncertain territory), or adding it as an acs_object (which isn't really necessary for this table).

Would anybody who has done this before describe how they did it? Or should I just go ahead and make it into an acs_object? I only have a few hours to spend on this aspect of it, but unfortunately, it looks like it will take a few hours to do either way... :(