Index: openacs-4/packages/acs-core-docs/www/how-do-I.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/how-do-I.adp,v diff -u -N -r1.2 -r1.3 --- openacs-4/packages/acs-core-docs/www/how-do-I.adp 7 Aug 2017 23:47:50 -0000 1.2 +++ openacs-4/packages/acs-core-docs/www/how-do-I.adp 8 Nov 2017 09:42:10 -0000 1.3 @@ -12,20 +12,20 @@

How Do I?

-How do I edit the front page of a new site +How do I edit the front page of a new site through a web interface?

The easiest way is to install the Edit-This-Page package.

  1. Log in to the web site as an administrator.

  2. Click on Admin > Install Software > Install from OpenACS Repository / Install new application

  3. Choose Edit This Page and install

  4. Follow the instructions within Edit This Page (the link will only work after Edit This Page is installed).

-How do I let anybody who registers post to +How do I let anybody who registers post to a weblog?

Go to /admin/permissions and grant Create to Registered Users

-How do I replace the front page of a new +How do I replace the front page of a new site with the front page of an application on that site

Suppose you install a new site and install Weblogger, and you want all visitors to see weblogger automatically.

  1. On the front page, click the Admin button.

  2. On the administration page, click Parameters link.

  3. Change the parameter IndexRedirectUrl to be the URI of the @@ -35,22 +35,22 @@

-How do I put custom functionality on front +How do I put custom functionality on front page of a new site?

Every page within an OpenACS site is part of a subsiteMore information). The home page of the entire site is the front page is a special, default -instance of a subsite, served from /var/lib/aolserver/$OPENACS_SERVICE_NAME/www. If an -index page is not found there, the default index page for all +instance of a subsite, served from /var/lib/aolserver/$OPENACS_SERVICE_NAME/www. +If an index page is not found there, the default index page for all subsites is used. To customize the code on the front page, copy the default index page from the Subsite package to the Main site and edit it:

    -
  1. cp /var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/acs-subsite/www/index*/var/lib/aolserver/$OPENACS_SERVICE_NAME/www
    +
  2. cp /var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/acs-subsite/www/index*/var/lib/aolserver/$OPENACS_SERVICE_NAME/www
     
  3. Edit the new index.adp to change the text; you shouldn't need to edit index.tcl unless you are adding new functionality.

-How do I change the site-wide style?

Almost all pages on an OpenACS site use ACS Templating, and so +How do I change the site-wide style?

Almost all pages on an OpenACS site use ACS Templating, and so their appearance is driven by a layer of different files. Let's examine how this works:

-

Figure 4.1. Site +

Figure 4.1. Site Templates

Site Templates

-How do I diagnose a permissions +How do I diagnose a permissions problem?

  • -Steps to Reproduce. The events +Steps to Reproduce.  The events package does not allow users to register for new events.

    1. Go to the http://yourserver.net/events as a visitor (ie, log out and, if necessary, clear cookies). This in on a 4.6.3 site with @@ -98,7 +98,7 @@ shown.

    2. -Finding the problem. We start with +Finding the problem.  We start with the page that has the error. In the URL it's http://myserver.net/events/event-info.tcl, so open the file /var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/events/www/event-info.tcl. It contains this line:

      @@ -116,20 +116,20 @@
       event.

    3. -Setting Permissions. A permission +Setting Permissions.  A permission has three parts: the privilige, the object of the privilige, and the subject being granted the privilige. In this case the privilige is "write," the object is the Events package, and the subject is all Registered Users.

      1. To grant permissions on a package, start at the site map. Find the event package and click "Set permissions".

      2. Click "Grant Permission"

      3. Grant the write permission to Registered Users.

        -

        Figure 4.2. Granting +

        Figure 4.2. Granting Permissions

        Granting Permissions

      OpenACS 5.0 offers a prettier version at /admin/applications.

      -

      Figure 4.3. Granting Permissions in +

      Figure 4.3. Granting Permissions in 5.0

      Granting Permissions in 5.0