In This Topic
In addition to the content you author, it is likely that your Document! X project will contain one or more CSS stylesheet, image or script files. Document! X includes a range of functionality to help you work with these Other Files.
Other Files Fundamentals
Add an existing image to the Project
- On the Project Ribbon Tab, click the Add existing Image file button;
- On the displayed file dialog, select the file or files to add to the project;
- The selected files will be added to the project and will then be available for selection in the Insert Image dialog.
Add an existing StyleSheet to the project
- On the Project Ribbon Tab, click the Add existing StyleSheet file button;
- On the displayed file dialog, select the file or files to add to the project;
- The selected files will be added to the project, included by default in each generated Topic and the styles contained within the stylesheet will be available for use on the Style Picker.
Create a new StyleSheet
- On the Project Ribbon Tab, click the New StyleSheet button;
- When prompted, type the desired filename for the new StyleSheet;
- The new StyleSheet will then be created and opened for edit in the StyleSheet editor.
Exclude Scripts or StyleSheets from a Topic
By default, each Topic will automatically include all of the stylesheet and script files you add to the project. If you wish to prevent certain stylesheets or scripts being used in a particular topic you can do so by excluding them in the Properties editor:
- On the , select the Topic or Topics where you wish to prevent one or more stylesheets or scripts being included;
- In the Properties Window, click the button beside the Excluded Other Files property;
- On the displayed dialog, select the stylesheets or scripts that you don't want included;
- Click Ok.
Exclude files from being included in the output
Excluding a file from being included in any online output
You may want to include some files only in booklet output (e.g. StyleSheets specific to booklet output).
- Select the file or files on the ;
- In the Properties window, click on the Exclude from Online build flag in the Build Flag Picker at the top of the Properties editor;
- Files marked with the Exclude from Online flag will only be included in booklet output.
Excluding a file from being included in any booklet output
You may want to include some files only in online help output (e.g. StyleSheets specific to online output that you don't want used in booklet output).
- Select the file or files on the ;
- In the Properties window, click on the Exclude from Booklet build flag in the Build Flag Picker at the top of the Properties editor;
- Files marked with the Exclude from Booklet flag will only be included in online output.
Include or exclude a file for a particular Build Profile
Using Build Flags you can create specific Rules in your Build Profiles that govern which files are included in which outputs.
See the Single Sourcing topic for information on how to use Build Flags and Build Profiles to create multiple outputs containing different sets of files.
Remove a file from the project
- Select the file or files you want to remove on the ;
- Click the Project Explorer toolbar button;
- The files will be removed from the project and you will prompted to confirm if you also wish to delete the files from disk.