ad_parameter_from_configuration_file (public)

 ad_parameter_from_configuration_file name [ package_key ]

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

Return the value of a parameter that has been set in the configuration file. It is possible to set Example snippets of the configuration file:

       ns_section ns/server/$server/acs {
           ns_param CSPEnabledP 1
           ns_param PasswordHashAlgorithm "argon2-12288-3-1 scram-sha-256  salted-sha1"
       }
       ns_section ns/server/$server/acs/acs-templating {
           ns_param UseHtmlAreaForRichtextP 2
       }
       ns_section ns/server/$server/acs/xowiki {
           ns_param MenuBar 1
       }
    
Note that kernel parameters have no package key included in the section name of the configuration file (see above).

Parameters:
name (required)
The name of the parameter.
package_key (optional)
package key of the package from which the parameter value is to be retrieved. When the package_key is omitted, the kernel parameters are assumed
Returns:
The parameter of the object or if it doesn't exist, the default.

Partial Call Graph (max 5 caller/called nodes):
%3 test_ad_parameter_from_configuration_file ad_parameter_from_configuration_file (test acs-tcl) ad_parameter_from_configuration_file ad_parameter_from_configuration_file test_ad_parameter_from_configuration_file->ad_parameter_from_configuration_file ad_parameter_from_file ad_parameter_from_file (public, deprecated) ad_parameter_from_file->ad_parameter_from_configuration_file packages/acs-subsite/www/shared/parameters.tcl packages/acs-subsite/ www/shared/parameters.tcl packages/acs-subsite/www/shared/parameters.tcl->ad_parameter_from_configuration_file parameter::get parameter::get (public) parameter::get->ad_parameter_from_configuration_file parameter::get_from_package_key parameter::get_from_package_key (public) parameter::get_from_package_key->ad_parameter_from_configuration_file parameter::get_global_value parameter::get_global_value (public) parameter::get_global_value->ad_parameter_from_configuration_file

Testcases:
ad_parameter_from_configuration_file
[ show source ]
Show another procedure: