Index: openacs-4/packages/acs-core-docs/www/subsites.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/subsites.html,v diff -u -r1.16 -r1.17 --- openacs-4/packages/acs-core-docs/www/subsites.html 28 Oct 2003 22:18:47 -0000 1.16 +++ openacs-4/packages/acs-core-docs/www/subsites.html 31 Oct 2003 10:54:20 -0000 1.17 @@ -1,4 +1,4 @@ -Writing OpenACS 5.0.0a1 Application Pages

Writing OpenACS 5.0.0a1 Application Pages

+Writing OpenACS 5.0.0a4 Application Pages

Writing OpenACS 5.0.0a4 Application Pages

By Rafael H. Schloming and Pete Su


@@ -7,15 +7,15 @@

Overview

In this document, we'll examine the user interface pages of the Notes application in more detail, covering two separate aspects of page -development in OpenACS 5.0.0a1. First, we'll talk about the code needed to make +development in OpenACS 5.0.0a4. First, we'll talk about the code needed to make your pages aware of which application instance they are running in. Second, we'll talk about using the form builder to develop -form-based user interfaces in OpenACS 5.0.0a1. While these seem like unrelated +form-based user interfaces in OpenACS 5.0.0a4. While these seem like unrelated topics, they both come up in the example page that we are going to look at, so it makes sense to address them at the same time.

Application Instances and Subsites

-As you will recall from the packages tutorial, the Request -Processor (RP) and Package Manager (APM) in OpenACS 5.0.0a1 allow site +As you will recall from the packages tutorial, the Request +Processor (RP) and Package Manager (APM) in OpenACS 5.0.0a4 allow site administrators to define an arbitrary mapping from URLs in the site to objects representing content. These objects may represent single files, or entire applications. The APM uses the site map to map @@ -256,15 +256,15 @@ visible to that user. The end result is a site where users can come and write notes to themselves.

-This is a good example of the leverage available in the OpenACS 5.0.0a1 +This is a good example of the leverage available in the OpenACS 5.0.0a4 system. The code that we have written for Notes is not at all more complex than a similar application without access control or site map awareness. By adding a small amount of code, we have taken a small, simple, and special purpose application to something that has the potential to be a very useful, general-purpose tool, complete with multi-user features, access control, and centralized administration.

Summary

-In OpenACS 5.0.0a1, application pages and scripts can be aware of the package +In OpenACS 5.0.0a4, application pages and scripts can be aware of the package instance, or subsite in which they are executing. This is a powerful general purpose mechanism that can be used to structure web services in very flexible ways. @@ -276,4 +276,4 @@

We also saw how to use the templating system's forms API in a simple way, to create forms based pages with minimal duplication of code. -

($Id$)
View comments on this page at openacs.org
+

($Id$)
View comments on this page at openacs.org