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

Testcases:
No testcase defined.
[ show source ]
Show another procedure: