NdxQrySep is equal to "<br> Queries for".
<html> <TITLE>[[COUNTY]] County, [[STATE]], [[TITLE]]</TITLE>
<H1><IMG SRC="usgenweb.gif" align=left>
<center>[[COUNTY]] County, [[STATE]]</H1>
<h2>[[TITLE]] [[SUBTITLE]]</H2></center><br>
<br>
SURNAMES: [[atozsur]]<br>
Everything in the above text that is not enclosed in [[ and ]] is fixed text. Everything inside of the [[ and ]] is a symbolic, we'll get to symbolics later.
To make changes to the fixed text you edit the text in CCHelper. Possible changes include changing the background, adding a .gif file, changing the fixed text in the header, changing the way your name and e-mail address appear at the bottom or changing the phrasing on the researcher's page.
Example #1: change the background color of all of the pages that use the common header
<BODY BGCOLOR="#FFFFFF" Text=000000>
Symbolics are used to tell the CCHelper HTML generator where to place the data stored in your database. You specify symbolics in the HTML by enclosing the name in [[ and ]]. In Example #2 above, during HTML generation, CCHelper will put all of the surnames registered on a given date by researcher where it says [[surline]] and put the date the surnames were registered where is says [[postdate]].
You can find more information about the various symbolics in CCHelper under "Manage", "Control Settings" and then scroll down to where "Symbolic Field" is shown.
Example #3: remove the date in the text in Example #2 above., so it will just say "Registered surname(s) [[surline]]".
The above instructions refer to CCHelper substituting the symbolics with data, eg [[resname]] will be replaced with the researcher's name. You may wonder, "How does it determine which researcher?". CCHelper reads through the data in your database based on the REPEAT commands defined in the HTML and then "repeats" a portion of the HTML for each set of data it reads. For example, when you want to specify the HTML that is to be used for each researcher, you use the /[REPEAT FOR EACH RESEARCHER]/ and /[END REPEAT]/ commands. Here's an example from the "res. body" HTML section in CCHelper that illustrates the REPEAT command as well as the IF command.
| Text | Comment |
|---|---|
| <center>RESEARCHERS: [[atozres]]</center><br> | This text does not repeat, it only appears once on each page, because it is before the REPEAT command. |
| /[REPEAT FOR EACH RESEARCHER]/ | This says "repeat the following line(s) for each researcher". |
| [[atoztag]] [[Tag]] <h3>[[ResName]]</h3> <ul> | |
| /[ IF ResEmail EXISTS ]/ | This says "only do the following line(s) if this researcher has an e-mail address". |
| <li> Email: <a href="mailto:[[resemail]]">[[resemail]]</a> | |
| /[ ENDIF]/ | |
| /[ IF ResWebPage EXISTS ]/ | This says "only do the following line(s) if this researcher has a Web page." |
| <li> Personal Web Page: <a href=" [[ResWebPage]]"> [[ResWebPage]] </a> | |
| /[ ENDIF]/ | |
| /[ IF ResNote EXISTS ]/ | This says "only do the following line(s) if this researcher has an note".
|
| <li> Other: [[ResNote]] </a> | |
| /[ ENDIF]/ | |
| /[REPEAT FOR EACH REGISTRATION]/ | This is a repeat inside of a repeat, in this case it says "repeat the following line(s) for each surname registration for the current researcher". |
| <li> Registered surname(s) [[surline]] on [[postdate]] | |
| /[END REPEAT | This ends the repeat for the surname registration. |
| /[REPEAT FOR EACH QUERY]/ | This says "repeat the following line(s) for each query for the current researcher". |
| <li> Posted <a href="[[QryRef]]">Query</a> on [[postdate]] for surname(s) [[surline]] | |
| /[END REPEAT]/ | This ends the repeat for the query. |
| </UL> | |
| /[END REPEAT]/ | This ends the repeat for the researcher. |
Note that commands are enclosed with /[ and ]/. You can find more information about commands in CCHelper under "Help", "Command Help".
The "default order" is a relative number for where the section should appear on a page. Typically "1" would be for a header section, "3" would be for a body section and "9" for a trailer section. The value you enter here is the number that will be used as a default when this section is added to a page.
Next go to the "Manage" "Page Definitions" window. Do "copy" or "add" to create a new page definition and give it a new name, e.g. 'widget page'. If you copied another page, delete the links to the sections you do not want on this page and add the section you created above (eg 'widget body'). If you added the page, add all the sections (eg common header, widget body, common return, and common trailer) that you would like to appear on the page.
Give the page a filename that is not being used by another page, eg "widget". You should enter only the base name, CCHelper will add the HTML extension when the page is generated (eg widget.htm). Enter the title as you want it to appear on the Web page (this is the value that will be used wherever [[title]] if found in the "common header").
Make sure that the order numbers assigned to each section will place them in the correct order on the page. You can change the number by typing over it. Note that the sections will not appear in the correct order in the "Page is made up of HTML sections" box when they have just been added, but will sort correctly once you have pressed "OK" and have accepted the changes.
Note that if you add a page, CCHelper will assume that it is a "fixed" text page. To create another researcher, query, or surname page, copy an existing page of that type. There are special consideration for having multiple kinds of the researcher, query and surname pages. See the next section for details.
If the page is not a fixed text page, it's a little more complicated. In this case the filename that you enter in the "Edit" "Page definition" window is actually just first part of the name. Let's use the researcher page as an example. You enter a file name of "res" and CCHelper creates a file name of "resa" and "resm" (if you have the breaks set to AM for the county).
But it gets even more complicated than that. Although you can have more than one researcher page defined (eg the export page is a researcher page because it uses the REPEAT FOR EACH RESEARCHER command) only one researcher page is the REAL researcher page. By this I mean that if you want to link to a researcher from the surname index, the REAL researcher page it the one you want to link to. You can change the file name of a researcher, query or surname page without any special considerations if it is NOT the REAL page.
If it is the REAL page, you need to change the corresponding control setting for the prefix of that page (ie "Manage", "Control Settings", "ResPagePre", "Edit") to match the name for the REAL page (ie "Manage", "Page definitions", "res. page", "Edit). These two settings must match because CCHelper uses the ResPagePre value to build links to the researcher page.
Return to the CCHelper Home page.
Return to the Install on Windows 95 page.
Return to the Install on Windows 3.1 page.
Return to the Getting Started page.