Index: openacs-4/packages/acs-content-repository/www/doc/guide/storage.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/www/doc/guide/storage.adp,v diff -u -r1.2.2.3 -r1.2.2.4 --- openacs-4/packages/acs-content-repository/www/doc/guide/storage.adp 1 Dec 2015 11:17:42 -0000 1.2.2.3 +++ openacs-4/packages/acs-content-repository/www/doc/guide/storage.adp 1 Jul 2016 09:17:33 -0000 1.2.2.4 @@ -30,7 +30,7 @@ );

Content types are nothing more than standard ACS Objects that -inherit from content_revision:

+inherit from content_revision:

 begin
 
@@ -64,11 +64,12 @@
 /
 show errors
 
-

Note that content types always extend content_revision, -rather than content_item. This is because we want to store -multiple revisions of both the actual data (in this case the image) -as well as associated attributes (the width and height of the image -may vary among revisions).

+

Note that content types always extend +content_revision, rather than content_item. +This is because we want to store multiple revisions of both the +actual data (in this case the image) as well as associated +attributes (the width and height of the image may vary among +revisions).

Define a Relationship to a Target Object

The content repository implements a flexible mechanism for organizing data in a hierarchical fashion in a manner similar to a @@ -94,11 +95,11 @@ max_n_rels_two => 1 ); -

Note that the user object is related to a -content_item object rather than an image object -directly. Each image object represents only a single -revision of a portrait. Revisions always exist in the context of an -item.

+

Note that the user object is related to a +content_item object rather than an image +object directly. Each image object represents only a +single revision of a portrait. Revisions always exist in the +context of an item.

Store Objects

Now we have defined both a content type and relationship type, we can start storing portraits. The DML for processing a new @@ -119,5 +120,5 @@


karlg\@arsdigita.com -

Last Modified: $‌Id: storage.html,v 1.1.1.1 2001/03/13 22:59:26 -ben Exp $

+

Last Modified: $‌Id: storage.html,v 1.1.1.1.30.1 2016/06/22 +07:40:41 gustafn Exp $