Forum OpenACS Development: Response to How to find nearest subsite

Collapse
Posted by Arjun Sanyal on
Lars, check out site-nodes-procs.tcl in /packages/dotlrn/tcl/. It's a bunch of utilities I wrote to do just this sort of thing. You probably want site_nodes::get_parent_id (which returns a node_id) and site_nodes::get_url_from_node_id.