I'm looking for code that will return all node_ids from the site_nodes table that belong to one branche. For example all node_ids that belong to a certain class or community (subdirectories in the site-map).
I suppose I should use tree_sortkey, but I didnt find existing procs, so I could use some advice here.