When you exclude topics from your published output you do this with include options. You can prevent dead links to the topic by using the exactly the same include options to also exclude the hyperlinks that would be dead. This is then automatic. The hyperlinks will always be excluded whenever the topic they link to is excluded, because they are both controlled by the same include options.
You can also use additional include options to include alternative text or even alternative links whenever the topic is excluded.
1.Use Find Referrers (see above) to locate all topics containing links to the topic you want to exclude.
2.Open the topic containing the link that you want to exclude in the editor and locate the link.
You now need to decide what needs to be excluded and replaced. We will assume that you want to exclude the entire sentence containing the link and replace it with an alternative sentence.
Excluding the link:
3.Select the entire sentence containing the link and select the Conditional Text Tool in
4.Now select exactly the same include options that you are using to exclude the topic the link points to and click on OK.
In the example above we have selected WebHelp and Adobe PDF. This means that the link will only be included when you publish to WebHelp or PDF, it will be excluded from all other formats. Since the options match those set for the topic the link points to it will be excluded whenever the topic is excluded and included when it is included.
Including alternative text and/or links:
5.If you want, you can now write an alternative sentence with or without a link to a different topic and use conditional text to include the alternative text whenever the original text is excluded.
The easiest way to do this is with IFNOT. In the above example we would also select WebHelp and Adobe PDF, but in combination with IFNOT instead of IF. This will ensure that the alternative is always included when the original is excluded, and vice versa.
|