I'm trying to figure out how to use tree_sortkey on a table that isn't using the content repository, but just acs_objects.
tree_sortkey isn't too hard when using the content_repository, because the parent_id is already in the cr_items table.
But when using acs_objects, I don't see any such thing.
That confuses me, because tree_sortkey is in acs_objects. Am I supposed to use the context_id from parent_id?
So if I create a table foo that is foreign key acs_objects, how do I use tree_sortkey?
create table foo (
my_key integer references acs_objects
parent_id integer references foo
);
???
And how would I make a tree_sortkey query using that?
If someone could help me out, I'd very much appreciate it. If I have time, I'll even add something on tree_sortkey to the main docs.