en:tcmediainfo:documentation:script_getoption
GetOption
The function returns the value of the option by name.
GetOption(OptionName [, Default])
OptionName | The name of the option as it appears in the configuration. Case insensitive. |
Default | The value that will be substituted if the option is not found. If the parameter is not specified, an empty string or 0 will be returned depending on the context. |
Remarks
For scripts in the content plugin, the function looks for options only in the global options node, and for scripts in the view plugin, first in the listeroptions/options node, and then in options.
The function supports both fixed options and custom ones.
en/tcmediainfo/documentation/script_getoption.txt · Последнее изменение: 2024/11/07 16:51 — loopback