Getting WWH 5.0 to work with Cold Fusion

Version

Date

Changes

1.0

2006-11-30

Initial version.

1.1

2006-11-31

Modified so and so...

1.2

2008-12-23

Finally updated with solution

Description

To secure a knowledge base (based on Web Works Help 5.0) on a customer facing website, we use Cold Fusion. To secure the files, it turns out you need to change all of the .htm frameset (in \Targets\<Target_Name>\Files\wwhelp\wwhimpl\common\html and \Targets\<Target_Name>\Files\wwhelp\wwhimpl\js\html) files to .cfm files. You also need to change all references to these files (in some of the generated .htm and .js files) to use .cfm.

What I've done so far

What I plan to do

Renaming Frameset Files

My vague understanding, since I've never read anything about ColdFusion, is to get it to work with a set of HTML files, in a directory you want to protect via ColdFusion, you rename index.html to index.cfm and add the line "<cfinclude template="lock.cfm">" at the top of the file. You then need to add lock.cfm and application.cfm to the directory. (I got this from the webmaster. No idea how you get those files otherwise.)

However, because of all the frameset files with WWH, you also need to rename all the frameset files. To do this I did the following:

  1. Created a Target override.
  2. Copied over the contents of \Files\wwhelp\wwhimpl\common\html and \Files\wwhelp\wwhimpl\js\html.
  3. Renamed all the files in those two directories .cfm, and added the header line "<cfinclude template="lock.cfm">" to all the files.

  4. Searched through all the .cfm files and changed any reference to *.htm to *.cfm.

I then searched through the original Format directory for *.htm references and fixed the references in the *.js etc. For your edification:

WWH also includes a few generated *.js and *.htm files. You need to fix some files in the Transforms directory as well:

Not Copying .htm Files

Once this is done, when you generate your project, the Output\Files\wwhelp\wwhimpl\common\html and \js\html directories are full of the .cfm files and .htm files.

Turns out if you create a target override, and rename file extensions, ePP will always copy over the original files. To avoid this, you need to make a User Format.

  1. Create a directory in the My Documents\ePublisher Pro User Formats directory. (I think this directory is hard-coded in ePP.)
  2. Copy the contents of C:\Program Files\WebWorks\ePublisher Pro\Formats\WebWorks Help 5.0 to your new user format directory.

  3. Make all the above changes to the user format.
  4. In ePublisher Pro, create a new Target for the stationery, selecting your new user format as the format.

DevCenter/Projects/WebWorksHelp/ColdFusion (last edited 2008-12-23 16:55:59 by ZoeLawson)