Content Repository : content_template
Templates are a special class of text objects that are used for specifying the layout of a content item. They may be mapped to content types, meaning that every item of that type will display using that template unless a specific item overrides the default by mapping to a template itself.
Retrieves the full path to the template, as described in content_item.get_path
Author: | Karl Goldstein | ||||||
---|---|---|---|---|---|---|---|
Returns: | The path to the template, starting with the specified root folder | ||||||
Parameters: | |||||||
|
|||||||
Declaration: | |||||||
function get_path ( template_id in cr_templates.template_id%TYPE, root_folder_id in cr_folders.folder_id%TYPE default c_root_folder_id ) return varchar2; | |||||||
See Also: | content_item.get_path |
Parameters: | |
---|---|
Not yet documented | |
Declaration: | |
function get_root_folder return cr_folders.folder_id%TYPE; |
Determine if an item is a template.
Author: | Karl Goldstein | |||
---|---|---|---|---|
Returns: | 't' if the item is a template, 'f' otherwise | |||
Parameters: | ||||
|
||||
Declaration: | ||||
function is_template ( template_id in cr_templates.template_id%TYPE ) return varchar2; | ||||
See Also: | content_template.new |
Creates a new content template which can be used to render content items.
Author: | Karl Goldstein | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns: | The id of the newly created template | ||||||||||||||||||
Parameters: | |||||||||||||||||||
|
|||||||||||||||||||
Declaration: | |||||||||||||||||||
function new ( name in cr_items.name%TYPE, parent_id in acs_objects.context_id%TYPE default null, template_id in cr_templates.template_id%TYPE default null, creation_date in acs_objects.creation_date%TYPE default sysdate, creation_user in acs_objects.creation_user%TYPE default null, creation_ip in acs_objects.creation_ip%TYPE default null ) return cr_templates.template_id%TYPE; | |||||||||||||||||||
See Also: | acs_object.new, content_item.new, content_item.register_template, content_type.register_template |
Deletes the specified template, and unregisters the template from all content types and content items. Use with caution - this operation cannot be undone.
Author: | Karl Goldstein | |||
---|---|---|---|---|
Parameters: | ||||
|
||||
Declaration: | ||||
procedure delete ( template_id in cr_templates.template_id%TYPE ); | ||||
See Also: | acs_object.delete, content_item.unregister_template, content_type.unregister_template, |
Last Modified: $Id: template.html,v 1.1.1.1 2002/07/09 17:34:57 rmello Exp $