install::xml::action::set-theme (public)

 install::xml::action::set-theme node

Defined in packages/acs-tcl/tcl/install-procs.tcl

Sets a theme for a subsite. If no subsite is specified it defaults to the main subsite "/". Valid themes are e.g. "openacs_bootstrap5", "openacs_bootstrap3", "default_plain", or default "tabbed".

<set-theme theme="theme" [ package="subsite ]

Parameters:
node (required)

Partial Call Graph (max 5 caller/called nodes):
%3 apm_attribute_value apm_attribute_value (public) apm_required_attribute_value apm_required_attribute_value (public) site_node::get_node_id site_node::get_node_id (public) site_node::get_object_id site_node::get_object_id (public) subsite::set_theme subsite::set_theme (public) install::xml::action::set-theme install::xml::action::set-theme install::xml::action::set-theme->apm_attribute_value install::xml::action::set-theme->apm_required_attribute_value install::xml::action::set-theme->site_node::get_node_id install::xml::action::set-theme->site_node::get_object_id install::xml::action::set-theme->subsite::set_theme

Testcases:
No testcase defined.
Source code:
    variable ::install::xml::ids

    set theme [apm_required_attribute_value $node theme]
    set subsite [apm_attribute_value -default "/" $node subsite]

    #
    # Get subsite_id from "subsite" path
    #
    set subsite_id [site_node::get_object_id  -node_id [site_node::get_node_id -url $subsite]]
    subsite::set_theme -subsite_id $subsite_id -theme $theme
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: