Forum OpenACS Q&A: Re: How to get all package_id's of classes/communities and subgroups?

check out site_node::get_children. It returns urls which can be converted to a package_id with site_node::get_from_url (or others)