How to Add Searchable Labels in WebHelp Output
It is possible to add searchable labels in WebHelp Responsive output that can be clicked to search for topics with that exact same label. Labels are textual words attached to a DITA topic that enables it to be easily found using the search function. These labels can help you organize your topics, making it more accessible to retrieve topics for a specific text.
Configure Oxygen Feedback as an External Search Engine
How to Add Searchable Labels in a DITA Topic
<keyword>
element with an @outputclass
attribute
set to label within the prolog of each topic that you want to have that label
displayed in the output.<prolog>
<metadata>
<keywords>
<keyword outputclass="label">Customization</keyword>
</keywords>
</metadata>
</prolog>
This would add a label that contains the text "Customization" in the output for the particular topic. If the user clicks that label, the search engine will search for all topics that have this same label defined.
Transformation Parameters for Generating Searchable Labels
- keywords-label - Generates labels for each defined
<keyword>
element that has the@outputclass
attribute value set to label. - keywords -
Generates labels for each defined
<keyword>
element. If the topic contains<keyword>
elements with the@outputclass
attribute value set to label, then only these elements will have labels generated for them in the output. - disable - Disables the generation of labels in the WebHelp Responsive output.
Searchable Labels in WebHelp Responsive Output
The WebHelp Responsive transformation will generate a component that renders the text value
of the <keyword>
element. When the user clicks that component, they
will be redirected to the search page with the search query populated for them and the
search engine will display all topics that have the same text value defined in the
prolog.