Forum OpenACS Development: acs-subsite parameters

Collapse
Posted by Iuri Sampaio on
Hi there,

I want that subsite children of Mainsite inherit their parameters.

Ho do i set it up through hhtp interface?
Is that possible?

Collapse
2: Re: acs-subsite parameters (response to 1)
Posted by Iuri Sampaio on
sorry, gramma corrections:

I want that subsite children of Mainsite inherit its parameters.

Ho do i set it up through hhtp interface?
Is that possible?

Collapse
3: Re: acs-subsite parameters (response to 1)
Posted by Dave Bauer on
This has not been implemented yet. It was discussed but noone has had a chance to work on it yet.

What would be possible now for you is to go to the APM and edit the default parameters of the acs-subsite package to have the settings you want. This would solve the problem for subsites created in the future.

For existing subsites you would need to update the parameters by hand or through a sql query to the values you want.

Collapse
4: Re: acs-subsite parameters (response to 3)
Posted by Iuri Sampaio on
Thanks Dave,
that helps 50%.

It still remains some parameters that are not listed on apm->acs-subsite->parameters such as tabbed layout options

anyway, finding my way out... ;)
i found an API to do the job

# Set paramters
callback subsite::parameter_changed -package_id $subsite_id -parameter "UserNavbarTabsList" -value ""
callback subsite::parameter_changed -package_id $subsite_id -parameter "IndexRedirectUrl" -value "main"

So, every time i call site_node::instantiate_and_mount
i write those lines later in the code.

Collapse
5: Re: acs-subsite parameters (response to 1)
Posted by Dave Bauer on
Try https://openacs.org/api-doc/proc-view?proc=parameter%3a%3aset_value

parameter::set_value

The callback proc should never be called outside the parameter API.

Collapse
6: Re: acs-subsite parameters (response to 5)
Posted by Iuri Sampaio on
I can tell on the top of my head 3 possible motives. security reasons, good programming rules and modularization.

why is that?