Index: openacs-4/packages/acs-content-repository/www/doc/tutorial.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/www/doc/tutorial.adp,v diff -u -r1.6 -r1.7 --- openacs-4/packages/acs-content-repository/www/doc/tutorial.adp 1 Nov 2018 08:46:40 -0000 1.6 +++ openacs-4/packages/acs-content-repository/www/doc/tutorial.adp 3 Sep 2024 15:37:31 -0000 1.7 @@ -1,10 +1,15 @@ -{/doc/acs-content-repository {ACS Content Repository}} {ACS Content Repository Tutorial} +{/doc/acs-content-repository/ {ACS Content Repository}} {ACS Content Repository Tutorial} ACS Content Repository Tutorial +

How to use the content repository

-by Jade Rubick +by Jade +Rubick

Why use the content repository?

Let's say you're a developer making a package for OpenACS. You've heard statements like, "every package @@ -537,7 +542,7 @@ The content repository also has a very useful facility for organizing your data into a hierarchy, very similar to a -file-system. Just like a file system, you can have folders to store +file-system. Just like a filesystem, you can have folders to store items inside of, and organize your information. The main difference is that every item can also contain other items. So in our case, we can have tasks that contain other tasks. This is a useful way for @@ -651,7 +656,7 @@ Note that this example is for projects rather than tasks. This is because for the application I'm writing, projects are what tasks are stored inside of. A project has many component tasks. If -you were writing another application, or if I wasn't doing +you were writing another application, or if I was not doing anything with projects, then this would be creating a folder for just tasks.

Typically, this definition would go in your @@ -771,13 +776,13 @@ attributes.

-
Content Folder
A folder is analogous to a folder or directory in a file -system. It represents a level in the content item hierarchy. In the +
Content Folder
A folder is analogous to a folder or directory in a filesystem. +It represents a level in the content item hierarchy. In the previous example, press-releases is a folder under the repository root, and products is folder within that.
-
Symbolic Link
Analogous to a symlink, alias or shortcut in a file system. +
Symbolic Link
Analogous to a symlink, alias or shortcut in a filesystem. Allows an item to be accessed from multiple folders.
@@ -794,7 +799,7 @@

Troubleshooting

One problem I ran into while trying to get my SQL create and drop -scripts working was that sometimes I wasn't able to delete a +scripts working was that sometimes I was not able to delete a content type because I would get errors like these:
 Referential Integrity: attempting to delete live_revision: 658