Adding A Custom Header File
- Open your existing ePublisher Pro project if it is not already open.
Go to View > User Files.
- Navigate up one level to the same directory where your .wep ePublisher Pro project file is located.
- Create a new folder named Targets.
- Note: The directories ePublisher Pro looks for are case-sensitive. Be sure to type the folder names exactly the way they are typed in the installation directory structure.
- Open the Targets directory you just created.
- Create a new folder and assign it the name of the Format Target you have selected in your project.
- Open the Format Target directory you just created. Leave this window open.
Open a new window and navigate to the Microsoft HTML Help 1.x folder located within the Targets directory where you installed WebWorks ePublisher Pro. By default, it is located in C:\ProgramFiles\WebWorks\ePublisherPro\Formats\Microsoft HTML Help 1.x.
- Open the Pages folder.
- Navigate to the template.hhp file, select it, right-click and choose Copy to copy the file.
- Within the Targets directory that you created in step 5, recreate the directory path that leads to the file you copied in step 11. Then paste the copied file here.
- For this example, since you are overriding the template.hhp file for your new format target based on the Microsoft HTML Help 1.x format, you would create within your new Targets directory a new folder called Pages, and paste the copied file here.
- The file you have just pasted will be the file that you will make your modifications to.
- Note: It is not necessary to copy any files into the project Targets directory that you are not explicitly overriding.
Modifying the HTML Help Project File
- Open the template.hhp file you just created in a text editor.
Change the $MapFile; string under the [Map] heading with the names of your multiple header files.
For Example:[MAP] #include "MyHeader1.h" #include "MyHeader2.h" #include "MyHeader1000.h"
- When you are finished adding your files, save the template.hhp file and
- the next time you Generate All in your ePublisher Pro project, this file will replace the default file (thus overriding it), and the changes you made will be incorporated into the output.
- When you save the ePublisher Pro project as Stationery, the Project
- Target Overrides you have created will be saved in your Stationery.
- This stationery can then be used to create future projects, thus
- maintaining these modifications throughout your future projects.
Adding Multiple Header Files to ePublisher Pro
- Open your existing ePublisher Pro project if it is not already open.
Go to View > User Files.
- Drag each of your header (.h) files here.
- Close the window.
Here's what Quadralay forgot: Click Format > Format Settings.
- Scroll down to the HTML Help section
- Click to the right of the HTML help custom map file field to
- activate the browser button.
- Browse to where your *.h file is and click on it to select it.
Go to Project > Generate All.