How to Use the
"Virtual Classroom" Page Skeleton for National Jewish Research Ctr.
" 23-Jan-02 (tw) Added logo_file param so can use different colored logo graphics.
" 01-Feb-02 (tw) Added check for "Application" version of all params, so they can be
set once in application.cfm. For example, in application.cfm in the
home dir of the pages, put:
<cfapplication name="unique name for the application">
<cfset Application.unit_title = "Bilgewater">
<cfset Application.logo_file = "SummerNJCLogo.gif">
Also added enough default information to skel so that
CF_SKEL can be called without any params and will still produce a page.
Also added param, show_defs.
" 18-Jul-02 (tw) Changes for use in custom apps like the Study Data Manager.
Logo can come from different place if https page.
Contents con file can be on diff dir from skel - allows different apps to
share the same programming.
avoids need to pass params back to prev_page No code was changed, is just a new
way of using skel
<CF_SKEL home_page = Where to go for Home button, a file name
page_title = Title of this page, appears in banner, large font
unit_title = Name of unit, module, course, whatever of which this page is a part
resource_name = A code designating a large area of the server, typically one per
customer = [ Admin | ProfEd ... etc]
page_number_of = Shows which page of how many, like "1 of 2"
this_page = File name of this page , eg, "index.cfm". Required
next_page = File name of next page - where we go after a [Next] or [Submit]
button. Null string if none.
prev_page = File name of previous page in a sequence. [Prev] button goes there.
Null string if none.
message_box = String which will display in box, lower-left corner of page
color_scheme = Name of the color scheme. Values are in schema.cfm
right_width = Width in pixels of the right-hand part of the page , default = 500
logo_width = Width in pixels of the logo, upper left, and of the left-hand
menu, if menu_file below has a value. Default = 100
logo_file = File name of logo graphic, which must be an image on /pix (or on
/sec/pix if page is https). If missing
it defaults to NJC colors. Width of graphic should match logo_width.
*Width of the entire page = logo_width + right_width
menu_file = File name containing html for left-hand menu. Assumes file is on same dir
as page skel. Null string if none (& no menu will show)
contents_file = either a URL or a file name on local dir,designating page contents,
a filler page.
file to be included in page HEAD
stylesheet_file = either a URL or a file name on local dir, designating "text/css"
stylesheet file to be link'ed in the page HEAD
collect_responses = ["NO", "STD", ""]
If NO, then no form on page, and if there is a next_page,
it will be reached via [Next] button.
If STD, then standard code is included to capture input from
all form fields into the userresponse table, standard
database. The form fields will be found in the
contents_file. Once the form is submitted, and data sent to
the database, then the browser is asked to show next_page.
If the file name of a script, then the output of any form that
appears on contents_file will be processed by said script
and that script will be responsible for which page the
browser shows next.
show_defs = [TRUE, FALSE] Default is TRUE. Note that values have no quotes
around them - they are keywords, not strings. FALSE
turns off display of the button for definitions list in the trailer.
<CF_SKEL home_page = "http://biosweb.njc.org/"
page_title = "Testing the Page Skeleton"
unit_title = "Ontological Excursions in Phrenology"
resource_name = "Admin"
page_number_of = "1 of 2"
this_page = "one.cfm"
next_page = "two.cfm"
prev_page = ""
message_box = "chillout!"
color_scheme = "ORANGEBLUE"
right_width = "500"
logo_width = "100"
collect_responses = "NO"
menu_file = ""
contents_file = "one.con">