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):
- Testcases:
- ad_parameter_from_configuration_file
Source code: # The below is really a hack because none of the calls to ad_parameter in the system # actually call 'ad_parameter param_name acs-kernel'. if { $package_key eq "" || $package_key eq "acs-kernel"} { return [ns_config "ns/server/[ns_info server]/acs" $name] } return [ns_config "ns/server/[ns_info server]/acs/$package_key" $name]XQL Not present: Generic, PostgreSQL, Oracle