When you are using a skin remember that the skin replaces all the HTML templates in your project with the versions in the skin. If you want to reference external files in your template you must do this in the skin, not in your project. |
With the exception of a limited number of graphics references, external files you reference in your template code are not automatically exported with your project because Help & Manual does not know about them. There are two ways to solve this problem:
The easiest way to ensure that graphics files and other files referenced in your HTML templates are located and exported correctly is to add them to your project's "Baggage" in Project Files > Baggage Files in the Project Explorer. Then you can use any tag references you like and you don't need to worry about whether the files will be exported and integrated in your output. All files in the Baggage Files section are integrated in your project automatically and can be referenced in your template code without any path information. See Using Baggage Files for more information and instructions. |
In WebHelp you must manually copy the files to your output directory if you have not added them to the Baggage (see above). The only exception to this are image files referenced in supported tags, which are exported automatically. In HTML Help you need to tell the compiler to include the files in the CHM file. Proceed as follows: 1.Copy the external file(s) to your project directory (the directory containing your .hmxz or .hmxp project file). 2.In the Project Explorer go to Configuration > Publishing Options > HTML Help > Extended .HHP Settings. 3.In the Additional Settings editing box add the following entries: [FILES] Don't add a second [FILES] header if one already exists. Enter each external filename on its own line below the [FILES] header and precede it with the ..\ relative path reference. This relative path reference is necessary because the project is published from a temporary subdirectory in the project directory, so files in the project directory are one level up. If your files are stored elsewhere you need to adjust the path accordingly. |
See also: