Index: openacs-4/packages/acs-core-docs/www/packages.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/packages.html,v diff -u -r1.43 -r1.44 --- openacs-4/packages/acs-core-docs/www/packages.html 4 Jun 2006 00:45:24 -0000 1.43 +++ openacs-4/packages/acs-core-docs/www/packages.html 17 Jul 2006 05:38:31 -0000 1.44 @@ -1,19 +1,18 @@ - -
At this point, you are probably excited to see your new package in
action. But, we haven't added any user visible pages yet. By
convention, user visible pages go in the
- ROOT/packages/notes/www directory. So go there and add a
- file called hello.html with some text in it. Now we have
+ ROOT/packages/notes/www
directory. So go there and add a
+ file called hello.html
with some text in it. Now we have
to make the user pages visible in the site. Since we didn't put the
- pages underneath ROOT/www they will not appear on their
+ pages underneath ROOT/www
they will not appear on their
own. What we have to do is mount the application into the site
map. That is, we have to define the URL from which the application
will serve its pages.
@@ -366,8 +381,8 @@
us to easily map package instances to URLs. As we said before, each
instance of an application has its own set of parameters and
runs from its own URL within the site. What this means is that even
- though all the code for the notes application lives in
- ROOT/packages/notes, the application itself can run from
+ though all the code for the notes
application lives in
+ ROOT/packages/notes
, the application itself can run from
any number of locations in the site. This allows developers and
administrators to build sites that look to the user like a collection
of many indedendent applications that actually run on a single shared
@@ -376,27 +391,27 @@
requested by the user at any given time. The page development tutorial shows you how to use this
information in your user interface.
- In order to make the new notes application visible to
+ In order to make the new notes
application visible to
users, we have to mount it in the site map. You do this by going to
the Site Map page, which is by
- default available at /acs-admin/site-map. Use the
- interface here to add a new sub-folder called notes to
- the root of the site, then click "new application" to mount a new
- instance of the notes application to the site. Name the
- new instance notes-1.
+ default available at /acs-admin/site-map
. Use the
+ interface here to add a new sub-folder called notes
to
+ the root of the site, then click "new application" to mount a new
+ instance of the notes
application to the site. Name the
+ new instance notes-1
.
- Then type this URL into your browser: http://yourserver/notes/hello.html
+ Then type this URL into your browser: http://yourserver/notes/hello.html
Now you should see the contents of the page that you added. What has
- happened is that all URLs that start with /notes have
+ happened is that all URLs that start with /notes
have
been mapped in such a way as to serve content from the directory
- ROOT/packages/notes/www. At this point, you can
+ ROOT/packages/notes/www
. At this point, you can
experiment with the site map by mounting multiple instances of the not
yet written Notes application at various places in the site. In a
later document, we'll see how to write your application so that the
code can detect from what URL it was invoked. This is the key
to supporting subsites.
-
The APM performs the following tasks in an OpenACS site:
Manages creation, installation, and removal of packages from the @@ -411,4 +426,4 @@
Writes out package distribution files for other people to download and install. We'll cover this later. -