Forum OpenACS Development: Name and URL from object_id

Hi all,

We need to get the url and name of an acs_object given the object_id. For instance, for a forum_id we need to get the title of the forum and the url to get to it (the page where you read the messages titles), for the assessment, the name and the url to take it, etc.

Is there now an stardar way to do it? Has any one done something similar not already commited in the CVS?

We need to do it and we were wondering if some one else has already done it in order to make it compatible with the rest of the packages, otherwise we will implement it from scratch, probably using callbacks.

Collapse
Posted by Malte Sussdorff on
All objects should have a package_id set in 5.2. Once you have the package_id, you look it up in the site_node table and voila, off you go.

Alternative, just use /o/object_id, should work as well (I think using callbacks, but I might be mistaken), it is in acs-subsite.