Edit online

How to Add a Welcome Message in the WebHelp Responsive Main Page

The main page of the WebHelp Responsive output contains a set of empty placeholders that can be used to display customized text fragments. These placeholders are available to you through WebHelp Responsive transformation scenario parameters. For example, the placeholder identified through the webhelp.fragment.welcome parameter displays text content above the search box in the main page.

Using a Publishing Template

To add a customized welcome message in the main page of the WebHelp Responsive output using an Oxygen Publishing Template, follow this procedure:
  1. If you have not already created a Publishing Template, see How to Create a Publishing Template.
  2. Open the template descriptor file associated with your publishing template and add the webhelp.fragment.welcome parameter in the parameters section with its value set to one of the following:
    • A small well-formed XHTML fragment (such as: <i>Welcome to the User Guide</i>).
    • A path to a file that contains well-formed XHTML content.
    <publishing-template>
        ...
        <webhelp>
            ...                
            <parameters>
                <parameter name="webhelp.fragment.welcome" value="c:\myMessage.xhtml"/>
            </parameters>
        </webhelp>
  3. Open the DITA Map WebHelp Responsive transformation scenario.
  4. Click the Choose Custom Publishing Template link and select your template.
  5. Click OK to save the changes to the transformation scenario.
  6. Run the transformation scenario.

Result: In the WebHelp output, your custom message will be displayed above the search box in the main page.

Using a Transformation Scenario in Oxygen XML Editor/Author

Important: Running WebHelp transformations from a script outside of Oxygen XML Editor/Author requires an additional license and some additional setup:
To add a customized welcome message in the main page of the WebHelp Responsive output using a transformation scenario from within Oxygen XML Editor/Author, follow this procedure:
  1. Edit the DITA Map WebHelp Responsive transformation scenario and choose a template.
  2. Open the Parameters tab and set the webhelp.fragment.welcome parameter with its value set to one of the following:
    • A small well-formed XHTML fragment (such as: <i>Welcome to the User Guide</i>).
    • A path to a file that contains well-formed XHTML content.
  3. Click OK to save the changes to the transformation scenario.
  4. Run the transformation scenario.

Result: In the WebHelp output, your custom message will be displayed above the search box in the main page.