CMS documentation
Working with CMS's customizable forms
CMS's database component
comes with a number of options for working with CMS databases. These options, which
are presented to you when you fire up CMS, are
generic -- they will work with any CMS dataseries, but they aren't particularly
pretty.
Sometimes that's okay, as when you (the CMS administrator) add, modify, and otherwise
care and feed for a dataseries. However, in many cases the dataseries will support
a service offered by a relatively-clueless user. For example, you can use CMS to
support a slew of blogs, each one of which may be the pet project of an ordinary
person (that is, someone who knows nothing about SREhttp/2, CMS, or software in general).
By careful use of CMS's customizable forms, you can make it relatively easy
for this ordinary person to maintain this dataseries (or, from the point of view
of this person, to maintain her blog).
Basically, CMS provides a set of templates for several customizable forms.
You, the administrator, can then:
- Copy these templates.
- Typically, when you define a dataseries for use by an ordinary person,
you should specify an output file directory that is strictly for her use.
Copy the template(s) to this output file directory.
Hints: |
|
---|
- Edit the copied templates.
- Each of the templates is heavily commented (using the <!-- a comment -->
HTML comment codes). You'll need to change & add a number of fields.
- Save this edited copy of the template to an HTML file.
- If you want, you can use the same name (say, overwrite CMS_CMT.HTM
with your edited version).
Remember the name you use -- you can use it in the
link creator!
- Create a link that uses this HTML file.
- Such as a link to Add a New Record or one to
Add a Comment to this Record.
This step requires carefully specifying some URLs, or CMS elements.
Although you could read the comments (in the form files) on how to do this,
you might find it easier to let the link creator utility
do it for you!
-
- Put this link in an accesible HTML file
- Whether it's from the sample forms, or from the link creator, you'll need to
copy these link(s) to an HTML document that is web-accessible. Then, tell your
ordinary person where to find this file; say, for use as an easy to use blog
maintanance tool.
What are the customizable forms
As of this writing. CMS provides the following types of customizable forms.
Each of them contains replaceable strings; CMS will replace these
strings with information on the series, record, etc.
Examples of these files
are located in the LIB subdirectory of the CMS directory.
- Add-Comment
(CMS_CMT.HTM).
Display a form with fields to be used to
create a new comment (for a specific record).
In particular. this is used by the
COMMENT CMS-element (ADD mode).
- Add Comment Response
(CMT_RESP.HTM).
After a comment has been added, return this file.
In particular. this is used by the
COMMENT CMS-element (ADD mode).
- Add Record
(CMS_ADD.HTM).
This file is used to
display a form with fields to be used to
create a new record.
In particular. this is used when invoking (say, via URL or an HTML addon)
the CMS_ADD.CMD component of CMS.
- Add Record Response
(ADD_RESP.HTM).
Example: ADD_RESP.HTM
A response file used after a record has been added.
In particular. this is used when invoking (say, via URL or an HTML addon)
the CMS_ADD.CMD component of CMS.
- Update the records
(UPDATE_RESP.HTM).
This is used in URLs that call CMS_MAKE -- the CMS utility that actually updates documents (that is,
writes HTML files using information stored in a dataseries). An update-records response file
is used to respond to such a call to CMS_MAKE.
12 September 2006