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):
%3 publish::merge_with_template publish::merge_with_template (private) content::item::get_template content::item::get_template publish::merge_with_template->content::item::get_template package_exec_plsql package_exec_plsql (public) content::item::get_template->package_exec_plsql

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

[ hide source ] | [ make this the default ]
Show another procedure: