Index: openacs-4/packages/acs-content-repository/www/doc/api/template.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/www/doc/api/template.html,v diff -u -r1.1.1.1.30.1 -r1.1.1.1.30.2 --- openacs-4/packages/acs-content-repository/www/doc/api/template.html 9 Jun 2016 08:21:01 -0000 1.1.1.1.30.1 +++ openacs-4/packages/acs-content-repository/www/doc/api/template.html 22 Jun 2016 07:40:41 -0000 1.1.1.1.30.2 @@ -1,266 +1,266 @@ - -
--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, |
- -
-
+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, |
+ +
+