content::item::get_template (public)
content::item::get_template -item_id item_id -use_context use_context
Defined in packages/acs-content-repository/tcl/content-item-procs.tcl
Retrieves the template which can be used to render the item. If there is a template registered directly to the item, returns the id of that template. Otherwise, returns the id of the default template registered to the item's content_type. Returns an empty string on failure.
- Switches:
- -item_id (required)
- The item_id
- -use_context (required)
- The context in which the template will be used (e.g. public)
- Returns:
- The template_id of the template which can be used to render the item, or an empty string on failure
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: return [package_exec_plsql -var_list [list [list item_id $item_id ] [list use_context $use_context ] ] content_item get_template]Generic XQL file: packages/acs-content-repository/tcl/content-item-procs.xql
PostgreSQL XQL file: packages/acs-content-repository/tcl/content-item-procs-postgresql.xql
Oracle XQL file: packages/acs-content-repository/tcl/content-item-procs-oracle.xql