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".
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.
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
} {