Including Specifically Linked Content

One way to completely exclude content from online output is to place condition tags on the topic files and include or exclude them from the targets (see Conditions). Another method is to use an option in the Target Editor to include only content files that are linked in some way from the target or the associated table of contents (TOC). These options can be especially useful if you are publishing output to Salesforce, ,ServiceNow or Zendesk. However, you do not need to be publishing to Salesforce, ServiceNow, or Zendesk to use the options.

How to Include Specifically Linked Content

  1. Open a target used for online output.
  2. On the Advanced tab of the Target Editor, click the Content to include drop-down.
  3. Select one of the following:
    • All Content All files will be included in the output, unless they are excluded by conditions or some other means.
    • Content linked directly or indirectly from the target If the target is using particular files such as a table of contents (TOCs), template page, and so on, other files linked directly or indirectly from them will be part of the output.

      Example Your target points to a TOC that includes Topic A, Topic B, and Topic C. If you generate an online output and use this option in the Target Editor, all three of those topics will be included in the output. In addition, Topic D will be included in the output. Although Topic D is not found in the TOC, a cross-reference to it is found in Topic B; therefore, it is linked to the TOC (and the target) indirectly. However, Topic E is not included in the output, because it is not found in the TOC and none of the topics to be included in the output contain a link to it.

      Example You have four topics in your project: Topic A, Topic B, Topic C, and Topic D.

      Topic A, Topic B, and Topic C have been included in your TOC. Topic D has not been included, and it does not contain any links to or from any other topics.

      Furthermore, let's say you want to use the "list-of" proxy feature to automatically generate a list of all H2 headings in the project (see Creating a List of Elements). All four of the topics have H2 headings in them, and you've inserted the List-Of proxy somewhere in Topic A.

      So what happens when you generate the output?

      If the "Exclude" target option is not enabled in the target, all four topics will be included in the output. In addition, the generated list of H2 headings will show heading text from all four of those topics.

      However, if the "Exclude" target option is enabled, only Topic A, Topic B, and Topic C will be included in the output. This also means that the generated list of H2 headings will show heading text only from those three topics. The H2 heading text from Topic D will not be included.

      Example Your primary target explicitly links to the following:

      • A TOC
      • A browse sequence
      • A stylesheet
      • One or more glossary files
      • A template page
      • A startup topic

      A target can also link explicitly to one or more relationship tables and one alias file. However, these files are not used to determine whether files should be included when this "Exclude…" target option is enabled.

      • The TOC and the browse sequence can link to topics, other TOCs, or other browse sequences. These files would then be included. You could even place a link to multimedia from a TOC or browse sequence if you wanted (although this cannot be done in the Flare user interface). It will work and those explicitly linked resources would also be included.
      • A stylesheet may link to image resources. These resources are included.
      • A glossary file may link explicitly to a topic if a term uses a topic as its definition. These topics are included.
      • A template page may link to a topic or resource (image/multimedia). These linked items would be included.
      • The startup topic is, of course, included.
      • Any included topic can explicitly link to additional topics via hyperlinks, cross-references, image maps, or related topics controls (not concept links or keyword links).

      Using this option can help prevent bloated output by excluding unused files.

      Example You have 1000 images in your project, but only 500 of them are used in the Microsoft HTML Help output you want to generate. By using this feature, only those 500 images are included in the output, thus keeping the output file size down to a minimum.

    • Content linked directly from the TOC Only content files that are linked directly from the TOC are included in the output.
  4. Click to save your work.