Index: openacs-4/packages/acs-content-repository/www/doc/api/item.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/www/doc/api/item.adp,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-content-repository/www/doc/api/item.adp 27 Oct 2014 16:39:14 -0000 1.2 +++ openacs-4/packages/acs-content-repository/www/doc/api/item.adp 7 Aug 2017 23:47:47 -0000 1.3 @@ -1,58 +1,73 @@ -{/doc/acs-content-repository {Content Repository}} {Package: content_item} +{/doc/acs-content-repository {ACS Content Repository}} {Package: content_item} Package: content_item - - -

content_item

-Content Repository : -content_item


+

 

+

Overview

+

Content items store the overview of the content published on a website. The actual content is stored in content revisions. It is implemented this way so that there can be mulitple versions of the actual content while the main idea remains constant. For example: -If there is a review for the movie "Terminator," there will exist a -content item by the name "terminator" with all the right parameters -(supertype, parent, etc), there will also exist at least one -content revision pointing to this item with the actual review -content.

 

Related Objects

+If there is a review for the movie "Terminator," there +will exist a content item by the name "terminator" with +all the right parameters (supertype, parent, etc), there will also +exist at least one content revision pointing to this item with the +actual review content.

+

 

+

Related Objects

+ See also: content_revision, content_folder -

 

API

Retrieve the content type of this item. Only objects of this +

 

+

API

+

Unregisters a template which will be used to render this +content_item.unregister_template +

Unregisters a template which will be used to render this item.

@@ -631,34 +688,37 @@ -
Author:Karl Goldsteinuse_context:  The context in which the template is appropriate, such as 'admin' or 'public'
Declaration:

+Declaration:

 procedure unregister_template (
   item_id      in cr_items.item_id%TYPE,
   template_id  in cr_templates.template_id%TYPE default null,
   use_context  in cr_item_template_map.use_context%TYPE default null
 );
 
-
+
See Also:content_type.register_template, content_item.register_template, content_item.get_template -

 

- + -
Parameters:
Not yet documented
Declaration:

+content_item.unset_live_revision
+
+
-
Parameters:
Not yet documented
Declaration:

 procedure unset_live_revision (
   --/** Set the live revision to null for the item
-  --    @author Michael Pih
-  --    @param item_id The id of the item for which to unset the live revision
-  --    @see {content_item.set_live_revision}
+  --    \@author Michael Pih
+  --    \@param item_id The id of the item for which to unset the live revision
+  --    \@see {content_item.set_live_revision}
   item_id      in cr_items.item_id%TYPE
 );
 
-

 

  • -Procedure: -content_item.write_to_file

Writes the content of the live revision of this item to a file, -creating all the neccessary directories in the process

+ +

 

+
  • +Procedure: content_item.write_to_file +

    Writes the content of the live revision of this item to a file, +creating all the necessary directories in the process

    Author:Karl Goldstein
    Parameters:
    @@ -668,15 +728,19 @@ -
    root_path:  The path in the filesystem to which the root of the sitemap corresponds
    Declaration:
    
    +
  • Declaration:
    
     procedure write_to_file (
       item_id     in cr_items.item_id%TYPE,
       root_path   in varchar2
     );
     
    -
    See Also:content_item.get_path

     

    -Last Modified: $Id$ - + + + +

     

    + +Last Modified: $‌Id: item.html,v 1.3.18.3 2017/04/21 14:53:08 +gustafn Exp $