Index: openacs-4/packages/acs-core-docs/www/tutorial-pages.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/tutorial-pages.adp,v diff -u -N -r1.1.2.13 -r1.1.2.14 --- openacs-4/packages/acs-core-docs/www/tutorial-pages.adp 23 Jun 2016 08:32:46 -0000 1.1.2.13 +++ openacs-4/packages/acs-core-docs/www/tutorial-pages.adp 19 Nov 2016 09:21:55 -0000 1.1.2.14 @@ -1,5 +1,5 @@ -{/doc/acs-core-docs {Documentation}} {Creating Web Pages} +{/doc/acs-core-docs {ACS Core Documentation}} {Creating Web Pages} Creating Web Pages

-Install some API

As a workaround for missing content-repository functionality, +Install some API

As a workaround for missing content-repository functionality, copy a provided file into the directory for tcl files:

cp /var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/acs-core-docs/www/files/tutorial/note-procs.tcl /var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/myfirstpackage/tcl/

To make this file take effect, go to the APM and choose "Reload changed" for "MyFirstPackage".

-Page Map

Our package will have two visible pages. The first shows a list +Page Map

Our package will have two visible pages. The first shows a list of all objects; the second shows a single object in view or edit mode, and can also be used to add an object. The index page will display the list, but since we might reuse the list later, we'll put it in a seperate file and include it on the index page.

-

Figure 9.5. Page +

Figure 9.5. Page Map

Page Map

-Build the "Index" page

Each user-visible page in your package has, typically, three +Build the "Index" page

Each user-visible page in your package has, typically, three parts. The tcl file holds the procedural logic for the page, including Tcl and database-independent SQL code, and does things like check @@ -48,7 +48,7 @@ This is the main page for the package. It displays all of the Notes and provides links to edit them and to create new Notes. \@author Your Name (you\@example.com) - \@cvs-id $‌Id: tutorial-pages.html,v 1.44.2.10 2016/06/21 07:44:36 gustafn Exp $ + \@cvs-id $‌Id: index.tcl,v 1.2.22.1 2015/09/10 08:21:20 gustafn Exp $ } set page_title [ad_conn instance_name] @@ -127,7 +127,7 @@ This is the view-edit page for notes. \@author Your Name (you\@example.com) - \@cvs-id $‌Id: tutorial-pages.html,v 1.44.2.10 2016/06/21 07:44:36 gustafn Exp $ + \@cvs-id $‌Id: note-edit.tcl,v 1.3.2.1 2015/09/10 08:21:20 gustafn Exp $ \@param item_id If present, assume we are editing that note. Otherwise, we are creating a new note. } { @@ -186,7 +186,7 @@ This deletes a note \@author Your Name (you\@example.com) - \@cvs-id $‌Id: tutorial-pages.html,v 1.44.2.10 2016/06/21 07:44:36 gustafn Exp $ + \@cvs-id $‌Id: note-delete.tcl,v 1.3.2.1 2015/09/10 08:21:20 gustafn Exp $ \@param item_id The item_id of the note to delete } {