How To Create A New Subdomain

1. Duplicate the NEARDAT section of showcase\d\http-app\htmldb.ini and rename the header in brackets (and all other occurences of "NEARDAT") with the name of the folder which stores the contents for the new sub-domain. For example, if the folder created for the new sub-domain is named "newdomain" then the htmldb.ini section will look something like the following.

[NEWDOMAIN]
DomainFile=d:\http\NEWDOMAIN\dommap.html
DomainMetadata=d:\http\NEWDOMAIN\metadata\DomMapRec.md
JSDomainFile=d:\http\NEWDOMAIN\nav.html
JSHeader=\jstemplate.html
JSTrailer=\jstrailer.html
WhatsNewFile=d:\http\NEWDOMAIN\NEWDOMAINwhatsnew.html
WhatsNewMetadata=d:\http\NEWDOMAIN\metadata\WhatsNewRec.md
CommentPageMetadata=d:\http\NEWDOMAIN\metadata\NEWDOMAINDialogueRec.md
ActivityPageMetadata=d:\http\NEWDOMAIN\metadata\WhatsNewRec.md
DataSepImgSrc=<P><IMG SRC=/NEWDOMAIN/icons/mfade.jpg>
;form settings
FormHeader="Fill out this form and press submit. Please limit the size of your submission to less than 28000 characters.<hr>"
FormFooter="<hr>"
FormBackgroundColor=""#C0C0C0""
FormButtonBefore="<BR><P>Fill out the form completely and press the preview button. Reload the records page to see your new entry at the top.  <BR>If you need assistance with this form, please refer to the <a href="/otag/otaghelp/interactivehelp.html">Interactive Help</a> page.<br>"
FormButtonAfter=""
;verify form settings
VerifyHeader="Verify your entries here; text enclosed in brackets indicates automatically generated text.<p> Press the submit button once.  <b>Due to the amount of data being processed, it may take some time for change to take place</b>.  After the page you wanted to add your record to is displayed, press the reload button in your browser in order to see changes. Please limit the size of your submission to less than 28000 characters.<hr>"
VerifyFooter="<hr>"
VerifyBackgroundColor=""#C0C0C0""
;VerifyBackgroundColor=""#F0F0F0""
VerifyButtonBefore="<BR><P>Double check your entries and press the submit button. Reload the records page to see your new entry at the top.  <BR>If you need assistance with this form, please refer to the <a href="/otag/otaghelp/interactivehelp.html">Interactive Help</a> page.<br>"
VerifyButtonAfter=""
2. Insert the sub-domain entry title into the list of entries at the top of htmldb.ini. Following the previous example, the new list might look something like the following. Ordering is important, so make sure the domain entries appear in the same order as listed.

Domains=OTAG, NEARDAT, O3SS, NESCAUM, CAPITA, NEWDOMAIN
3. Copy the entire folder named "Metadata" from the NEARDAT directory to the NEWDOMAIN directory. Replace any occurrence of "NEARDAT" in any file name (i.e. NEARDATDialog.md) with "NEWDOMAIN" (resulting in NEWDOMAINDialog.md). Next, replace all occurrences of "NEARDAT" with "NEWDOMAIN" within each file. In SHOWCASE\C\Program Files\ you will find a search and replace program which can be used for this task.

4. Create a NEWDOMAIN/People directory, and the create a NEWDOMAIN/People/ActivityLogs directory. Next, copy NEARDAT/People/People.html into the NEWDOMAIN/People/ directory. Finally, use htmldb.exe to remove all people entries from NEWDOMAIN/People/People.html.

5. Create a NEWDOMAIN/Forum directory and place into it a copy of NEARDAT/Forum/WebsiteForum.html. Use htmldb.exe to remove all entries from the new copy.

6. Create a NEWDOMAIN/OldWhatsNew directory for later use. Then make a copy of NEARDAT/NEARDATWhatsNew.html and save it as NEWDOMAIN/NEWDOMAINWhatsNew.html (notice the file name change).

7. The next step is to copy duplicates into NEWDOMAIN/ of all files which define the layout of NEARDAT. Below is the complete list. This will ensure that the new domain implements a layout identical to NEARDAT.

dommap.html
dommapjs.html
header.html
home.html
index.html
jstemplate.txt
jstrailer.txt
nav.html
Support.html
toc.html

8. Finally, use the search and replace program (from step 3) to replace all occurrences of "NEARDAT" with "NEWDOMAIN" withing the new domain's root directory and all sub-directories.