Forum OpenACS Development: Finding DefaultMaster programatically within a package

Hi everybody,

how can get the value of the DefaultMaster parameter of MainSite from within another package. I tried ad_parameter but it only works for parameters that are part of my own package.

Greetings,
Nima

Collapse
Posted by Tom Ayles on

You can use [ad_conn subsite_id] to get the ID of the closest subsite package (presumably the main site in your case). So you can call parameter::get -package_id [ad_conn subsite_id] -parameter DefaultMaster to get the default master parameter.

Tom, thanks alot