template::resource_path (public)
template::resource_path [ -verbose ] -type type -style style \ [ -relative ] [ -subsite_id subsite_id ] [ -theme_dir theme_dir ]
Defined in packages/acs-templating/tcl/util-procs.tcl
Process the templating "style" and return the stub (path without extensions). When the style is not an absolute path, check if the resource can be obtained from the theme, if not fallback to the resources directory of acs-templating.
- Switches:
- -verbose (optional, boolean, defaults to
"false"
)- -type (required)
- type of resource (e.g. "forms" or "lists")
- -style (required)
- name of the resource within the type (e.g. "standard")
- -relative (optional, boolean)
- return optionally the path relative to the OpenACS root directory
- -subsite_id (optional)
- subsite_id to determine theming information
- -theme_dir (optional)
- theming directory (alternative to determination via subsite), higher priority
- Returns:
- path of the resource (without extension)
- Author:
- Gustaf Neumann
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.