It is easy to confuse output types with targets, but they are two different (although related) concepts. A target is one instance of an output type. It is the engine that takes all of your files and settings, and brings them together to produce the end result. When you build your final output, you are essentially building one or more of the targets in your project.
Developing a target means to create it, and then give it the instructions necessary to produce the desired results.
Following are the basic tasks involved in developing a target:
- Determine Output Type To produce output, you first need to determine which type of output is most appropriate for your needs. You might even need to produce multiple outputs and require more than one output type. The output type can be specified on the General tab of the Target Editor. See Determining the Output Type and Changing the Output Type for a Target.
Add and Rename Targets Every target in a project has particular output type assigned to it. You can add multiple targets to a project, and you can make as many copies of existing targets that you want. For example, your project might end up containing three targets that are all based on the
HTML5output type. See Adding Targets.
It is helpful to rename targets that you use to reflect the nature of your project, especially if you are using multiple targets with the same output type. To rename a target, open the Targets folder in the Project Organizer, right-click the target you want to rename, and then select Rename. Then type a new name for the target and press Enter. See Renaming Targets.
- Edit Target Settings Using the Target Editor, you can perform tasks such as setting the output file name, choosing a skin, selecting a master stylesheet, associating (including/excluding) conditions, improving the processing performance, and more. To edit target settings, open the Targets folder in the Project Organizer, double-click the target that you want to edit, and use the various tabs in the Target Editor to specify settings. See Editing Target Settings.
Suppose you have hundreds of topics, and you want some to show up in some outputs, but not in others. How do you control which topics are included in a given output? It depends on whether you are generating online or print-based output.
When you build online output, all of the topics in the project will be included in the output unless you use one of the following methods to include or exclude them. If you do not use one of these methods, every topic will be included in the output, even if you add only some of them to the TOC (e.g., readers will be able to locate topics that are not in the TOC by using the search feature).
Applying Condition Tags at the Folder or File Level You can place condition tags on folders or topic files in the Content Explorer, then include or exclude those conditions in the targets. By placing a condition on a folder, it will automatically become associated with all topics within it.
See Applying Conditions to Content and Associating Conditions with Targets.
Note: You can place condition tags on files in the Project Organizer as well, but these conditions do not affect which files are included in the output. Rather, these conditions are useful for importing files from one Flare project into another.
See Global Project Linking—Importing Files from Other Projects.
- Excluding Links from Targets Another method is to use an option on the Advanced tab in the Target Editor to exclude all content files unless they are directly or indirectly referenced from the target. This means that if the target is using particular files such as a table of contents (TOCs), master page, and so on, other files linked directly or indirectly from them will be part of the output. This is a much quicker method and helps to keep your output file size down, but it is not quite as flexible as the other method.
See Excluding Content not Linked Directly or Indirectly from Targets.
If you are creating a print-based output, only the topics included in your "outline TOC" (i.e., the TOC file in the Project Organizer) will be included in the output. In addition, you can place condition tags on outline TOC entries and use them to further separate content for different outputs (i.e., if you have other targets using that same outline TOC).
Note: If you need to create print-based output from your Flare project, there are some additional tasks that are mandatory and several others that are optional. See Creating Print-based Output.