Index: openacs-4/packages/acs-content-repository/www/doc/guide/object-relationships.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/www/doc/guide/object-relationships.html,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-content-repository/www/doc/guide/object-relationships.html 13 Mar 2001 22:59:26 -0000 1.1 +++ openacs-4/packages/acs-content-repository/www/doc/guide/object-relationships.html 7 Aug 2017 23:47:47 -0000 1.2 @@ -4,7 +4,7 @@
Many applications of the content repository require that content @@ -36,7 +36,7 @@ an associated photo are one example of this. These "parent-child" relationships are handled by the basic hierarchical organization of the content repository. Every item has a parent item, represented internally -by the parent_id column in the cr_items table.
+by the parent_id column in the cr_items table.It is often desirable to constrain the number and content type of child items. For example, the specifications for a news story may @@ -47,33 +47,33 @@ presented to the user. The layout for a photo album may have a special position for a "featured" photo.
-- | + | + |
The content repository accomodates these situations in the +
The content repository accommodates these situations in the following ways:
Note that there is no currently no explicit API to "add a child." You specify the parent of an item upon creating it. You can use the -API procedure content_item.move to change the parent of an +API procedure content_item.move to change the parent of an item.