Index: openacs-4/packages/acs-content-repository/www/doc/api/template.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/www/doc/api/template.adp,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/acs-content-repository/www/doc/api/template.adp 27 Oct 2014 16:39:14 -0000 1.2
+++ openacs-4/packages/acs-content-repository/www/doc/api/template.adp 7 Aug 2017 23:47:47 -0000 1.3
@@ -1,21 +1,32 @@
-
-Content Repository :
-content_template
+Content Repository :
+content_template Templates are a special class of text objects that are used for
+ 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. content_template
+
+content_template
+
+Overview
Overview
+Related Objects
+mapping to a template itself.
+
Retrieves the full path to the template, as described in +
+
Retrieves the full path to the template, as described in content_item.get_path
Author: | Karl Goldstein | @@ -29,41 +40,47 @@|
---|---|---|
root_folder_id: | Starts path resolution at this folder |
+
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; -
+
Parameters: | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Not yet documented | ||||||||||||||||||||||||||||
Declaration: | ||||||||||||||||||||||||||||
+content_template.get_root_folder +
Determine if an item is a template. + Determine if an item is a template.
| ||||||||||||||||||||||||||||
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 +
+
Creates a new content template which can be used to render content items.
Author: | Karl Goldstein | @@ -80,16 +97,16 @@template_id: | The id of the new template. A new id will be allocated if this parameter is null | ||
---|---|---|---|---|---|
creation_date: | As in acs_object.new + | creation_date: | As in acs_object.new | ||
creation_ip: | As in acs_object.new + | creation_ip: | As in acs_object.new | ||
creation_user: | As in acs_object.new + | creation_user: | As in acs_object.new |
+
function new ( name in cr_items.name%TYPE, parent_id in acs_objects.context_id%TYPE default null, @@ -101,28 +118,32 @@ creation_ip in acs_objects.creation_ip%TYPE default null ) return cr_templates.template_id%TYPE; -
Deletes the specified template, and unregisters the 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 ); -
-Last Modified: $Id: template.html,v 1.1.1.1 2001/03/13 22:59:26 ben -Exp $ - +