Index: openacs-4/packages/acs-content-repository/www/doc/guide/items.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/www/doc/guide/items.adp,v
diff -u -N -r1.2.2.3 -r1.2.2.4
--- openacs-4/packages/acs-content-repository/www/doc/guide/items.adp 1 Dec 2015 11:17:41 -0000 1.2.2.3
+++ openacs-4/packages/acs-content-repository/www/doc/guide/items.adp 1 Jul 2016 09:17:33 -0000 1.2.2.4
@@ -5,9 +5,12 @@
Items
Content items are initialized using the
-content_item.new function. A name is the only parameter
+content_item.new function. A name is the only parameter
required to create an item: The parent ID must be another content item, or a subclass of
content item such as a folder. The content_item.new function accepts a number of other
-optional parameters. The standard creation_date,
-creation_user and creation_ip should be specified
-for auditing purposes. You can also create the initial revision and
-publish text items in a single step: The content_item.new function accepts a number of
+other optional parameters. The standard creation_date,
+creation_user and creation_ip should be
+specified for auditing purposes. You can also create the initial
+revision and publish text items in a single step: If either the title or text are not null, the function will
create the first revision of the item. It will also mark the item
-as live if the is_live parameter is true. The alternative
-to this one step method is to create a content item and then add a
-revision using the Content Revision API.Creating Content Items
+
+Content Repository : Developer
+Guide
Use the Content Item API to create the item
item_id := content_item.new( name => 'my_item' );
@@ -23,11 +26,11 @@
item_id := content_item.new(
name => 'my_item',
@@ -40,17 +43,17 @@
If a content item has at least one revision, then it can be -published by calling the content_item.set_live_revision -procedure, which takes as input a revision_id:
+published by calling the content_item.set_live_revision +procedure, which takes as input a revision_id:content_item.set_live_revision( revision_id => :revision_id );
Last Modified: $Id: items.html,v 1.1.1.1 2001/03/13 22:59:26 ben -Exp $
+Last Modified: $Id: items.html,v 1.1.1.1.30.1 2016/06/22 +07:40:41 gustafn Exp $