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.22.2.2 -r1.22.2.3 --- openacs-4/packages/acs-core-docs/www/subsites.html 21 Nov 2003 11:14:10 -0000 1.22.2.2 +++ openacs-4/packages/acs-core-docs/www/subsites.html 8 Dec 2003 15:41:19 -0000 1.22.2.3 @@ -1,18 +1,18 @@ -Writing OpenACS 5.0.0b2 Application Pages

Writing OpenACS 5.0.0b2 Application Pages

By Rafael H. Schloming and Pete Su

+Writing OpenACS Application Pages

Writing OpenACS Application Pages

By Rafael H. Schloming and Pete Su

OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff.

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.0b2. First, we'll talk about the code needed to make +development in OpenACS. 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.0b2. While these seem like unrelated +form-based user interfaces in OpenACS. 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.0b2 allow site +As you will recall from the packages tutorial, the Request +Processor (RP) and Package Manager (APM) 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 @@ -253,15 +253,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.0b2 +This is a good example of the leverage available in the OpenACS 5.0.0b4 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.0b2, application pages and scripts can be aware of the package +In OpenACS 5.0.0b4, 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. @@ -273,4 +273,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