<html-page-layout-files> element in the descriptor
file.<publishing-template>
...
<webhelp>
...
<!-- HTML page layout files -->
<html-page-layout-files>
<page-layout-file page="main" file="page-templates/wt_index.html"/>
<page-layout-file page="search" file="page-templates/wt_search.html"/>
<page-layout-file page="topic" file="page-templates/wt_topic.html"/>
<page-layout-file page="index-terms" file="page-templates/wt_terms.html"/>
</html-page-layout-files>If you do use the html-page-layout-files element, you must specify all four types of pages (main, search, topic, index). When not specified, the files from the DITA-OT-DIR/plugins/com.oxygenxml.webhelp.responsive/oxygen-webhelp/page-templates folder will be used to define the layout of each type of page.
HTML Page Components
Each type of page contains various components that control the layout of that page. The rendering of each component depends on the context where it is placed and its content depends on the transformed DITA map.
Some of the components can be used in all four types of pages, while some are only available for certain pages. For instance, the Publication Title component can be used in all pages, but the Navigation Breadcrumb component can only be used in the Topic Page.
To include a component in the output of a particular type of page, you
have to reference a specific element in that particular HTML file. All the elements associated
with a component should belong to the
http://www.oxygenxml.com/webhelp/components namespace.
<whc:component_content> element as a descendant of the component
element. It can specify the location as before, after, or it can wrap the component content.
The following snippet contains an example of
each:<whc:webhelp_search_input class="navbar-form wh_main_page_search"
role="form" >
<div class="custom-content-before">Enter search terms here:</div>
<div class="custom-wrapper">
<whc:component_content/>
</div>
<div class="custom-content-after">Results will be displayed in a new window.</div>
</whc:webhelp_search_input>The Main Page is the home page generated in the WebHelp Responsive output. The name of the HTML file that defines this page is wt_index.html and it is located in the following directory: DITA-OT-DIR/plugins/com.oxygenxml.webhelp.responsive/oxygen-webhelp/page-templates.
The main function of the home page is to display top-level information and provide links that help you easily navigate to any of the top-level topics of the publication. These links can be rendered in either a Tiles or Tree style of layout. The HTML page produced for the home page also consists of various other components, such as a logo, title, menu, search field, or index link.
webhelp_publication_title)<whc:webhelp_publication_title> element must be
specified in the HTML file as in the following
example:<whc:webhelp_publication_title
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_publication_title.
webhelp_logo)<whc:webhelp_logo> element must be specified in the HTML file
as in the following
example:<whc:webhelp_logo
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In addition, you must also specify the path of the logo image in the
webhelp.logo.image transformation parameter (in the
Parameters tab in the transformation scenario). You can set
the webhelp.logo.image.target.url parameter to generate a link to a
URL when you click the logo image.
In the output, you will find an element with the class: wh_logo.
webhelp_search_input)<whc:webhelp_search_input> element must be specified in the
HTML file as in the following
example:<whc:webhelp_search_input
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_search_input.
webhelp_print_link)<whc:webhelp_print_link> element must be specified in the
HTML file as in the following
example:<whc:webhelp_print_link
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_print_link.
<whc:webhelp_top_menu> element must be specified
in the HTML file as in the following
example:<whc:webhelp_top_menu
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_top_menu.
You can control the maximum level of topics that will be included in the menu using
the webhelp.top.menu.depth transformation parameter (in the
Parameters tab of the transformation scenario).
For information about customizing the menu, see How to Customize the Menu.
webhelp_tiles)<whc:webhelp_tiles> element must
be specified in the HTML file as in the following
example:<whc:webhelp_tiles
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_tiles.
<whc:webhelp_tile> component, as in the following
example:<whc:webhelp_tile class="col-md-4">
<!-- Place holder for tile's image -->
<whc:webhelp_tile_image/>
<div class="wh_tile_text">
<!-- Place holder for tile's title -->
<whc:webhelp_tile_title/>
<!-- Place holder for tile's shordesc -->
<whc:webhelp_tile_shortdesc/>
</div>
</whc:webhelp_tile>For information about customizing the tiles, see How to Configure the Tiles on the WebHelp Responsive Main Page.
webhelp_main_page_toc)<whc:webhelp_main_page_toc> element must be specified in
the HTML file as in the following
example:<whc:webhelp_main_page_toc
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_main_page_toc.
webhelp_indexterms_link)indexterms.html). If the published documentation does not contain
any index terms, then the link will not be generated. To generate this component, the
<whc:webhelp_indexterms_link> element must be specified in
the HTML file as in the following
example:<whc:webhelp_indexterms_link
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_indexterms_link. This component will contain a link to the
indexterms.html page.
webhelp_skin_resources)<whc:webhelp_skin_resources> element must be specified in the
HTML file as in the following
example:<whc:webhelp_skin_resources/>In the output, you will find a link to the skin resources.
The Topic Page is the page generated for each DITA topic in the WebHelp Responsive output. The name of the HTML file that defines this page is wt_topic.html and it is located in the following directory: DITA-OT-DIR/plugins/com.oxygenxml.webhelp.responsive/oxygen-webhelp/page-templates.
The HTML pages produced for each topic consist of the topic content along with various other additional components, such as a title, menu, navigation breadcrumb, print icon, or side table of contents.
The following components can be referenced in the Topic Page (wt_topic.html) file:
webhelp_publication_title)<whc:webhelp_publication_title> element must be
specified in the HTML file as in the following
example:<whc:webhelp_publication_title
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_publication_title.
webhelp_logo)<whc:webhelp_logo> element must be specified in the HTML file
as in the following
example:<whc:webhelp_logo
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In addition, you must also specify the path of the logo image in the
webhelp.logo.image transformation parameter (in the
Parameters tab in the transformation scenario). You can set
the webhelp.logo.image.target.url parameter to generate a link to a
URL when you click the logo image.
In the output, you will find an element with the class: wh_logo.
<whc:webhelp_theme_link> element must be specified in the
HTML file as in the following
example:<whc:webhelp_theme_link
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_theme_link.
webhelp_search_input)<whc:webhelp_search_input> element must be specified in the
HTML file as in the following
example:<whc:webhelp_search_input
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_search_input.
webhelp_breadcrumb)<whc:webhelp_breadcrumb> element
must be specified in the HTML file as in the following
example:<whc:webhelp_breadcrumb
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_breadcrumb. This component will contain a list with items that
correspond to the topics in the path. The first item in the list has a link to the
main page with the home class. The last item in the list corresponds
to the current topic and has the active class set.
webhelp_full_width_link)<whc:webhelp_full_width_link> element must be specified in
the HTML file as in the following
example:<whc:webhelp_full_width_link
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
webhelp_full_width_link.
<whc:webhelp_navigation_links>
element must be specified in the HTML file as in the following
example:<whc:webhelp_navigation_links
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_navigation_links. This component will contain the links to the
next and previous topics.
webhelp_print_link)<whc:webhelp_print_link> element must be specified in the
HTML file as in the following
example:<whc:webhelp_print_link
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_print_link.
webhelp_topic_content)<whc:webhelp_topic_content> element must be specified in
the HTML file as in the following
example:<whc:webhelp_topic_content
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_topic_content.
webhelp_publication_toc)<whc:webhelp_publication_toc> element must be specified in
the HTML file as in the following
example:<whc:webhelp_publication_toc
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_publication_toc. This component will contain links to the topics
referenced in the DITA map. It also includes an expand/collapse button (either
to collapse or the
to expand).
webhelp_topic_toc)<section> elements and each <section>
must have an @id attribute. To generate this component, the
<whc:webhelp_topic_toc> element must be specified in the HTML
file as in the following
example:<whc:webhelp_topic_toc
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_topic_toc. This component will contain links to the sections
within the current topic. It also includes an expand/collapse button (either
to collapse or the
to expand).
webhelp_expand_collapse_sections)<whc:webhelp_expand_collapse_sections> element must be
specified in the HTML file as in the following
example:<whc:webhelp_expand_collapse_sections
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
webhelp_expand_collapse_sections.
webhelp_feedback)<whc:webhelp_feedback>
element must be specified in the HTML file as in the following
example:<whc:webhelp_feedback
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/><whc:webhelp_top_menu> element must be specified
in the HTML file as in the following
example:<whc:webhelp_top_menu
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_top_menu.
You can control the maximum level of topics that will be included in the menu using
the webhelp.top.menu.depth transformation parameter (in the
Parameters tab of the transformation scenario).
For information about customizing the menu, see How to Customize the Menu.
webhelp_indexterms_link)indexterms.html). If the published documentation does not contain
any index terms, then the link will not be generated. To generate this component, the
<whc:webhelp_indexterms_link> element must be specified in
the HTML file as in the following
example:<whc:webhelp_indexterms_link
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_indexterms_link. This component will contain a link to the
indexterms.html page.
webhelp_child_links)<whc:webhelp_child_links> element must be specified in the HTML
file as in the following
example:<whc:webhelp_child_links
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/><whc:webhelp_related_links> element must be specified in the
HTML file as in the following
example:<whc:webhelp_related_links
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>webhelp_skin_resources)<whc:webhelp_skin_resources> element must be specified in the
HTML file as in the following
example:<whc:webhelp_skin_resources/>In the output, you will find a link to the skin resources.
The Search Results Page is the page generated that presents search results in the WebHelp Responsive output. The name of the HTML file that defines this page is wt_search.html and it is located in the following directory: DITA-OT-DIR/plugins/com.oxygenxml.webhelp.responsive/oxygen-webhelp/page-templates.
The HTML page that is produced consists of a search results component along with various other additional components, such as a title, menu, or index link.
The following components can be referenced in the Search Results Page (wt_search.html) file:
webhelp_publication_title)<whc:webhelp_publication_title> element must be
specified in the HTML file as in the following
example:<whc:webhelp_publication_title
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_publication_title.
webhelp_logo)<whc:webhelp_logo> element must be specified in the HTML file
as in the following
example:<whc:webhelp_logo
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In addition, you must also specify the path of the logo image in the
webhelp.logo.image transformation parameter (in the
Parameters tab in the transformation scenario). You can set
the webhelp.logo.image.target.url parameter to generate a link to a
URL when you click the logo image.
In the output, you will find an element with the class: wh_logo.
webhelp_search_input)<whc:webhelp_search_input> element must be specified in the
HTML file as in the following
example:<whc:webhelp_search_input
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_search_input.
webhelp_search_results)<whc:webhelp_search_results> element must be specified in the
HTML file as in the following
example:<whc:webhelp_search_results
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_search_results.
webhelp_print_link)<whc:webhelp_print_link> element must be specified in the
HTML file as in the following
example:<whc:webhelp_print_link
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_print_link.
<whc:webhelp_top_menu> element must be specified
in the HTML file as in the following
example:<whc:webhelp_top_menu
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_top_menu.
You can control the maximum level of topics that will be included in the menu using
the webhelp.top.menu.depth transformation parameter (in the
Parameters tab of the transformation scenario).
For information about customizing the menu, see How to Customize the Menu.
webhelp_indexterms_link)indexterms.html). If the published documentation does not contain
any index terms, then the link will not be generated. To generate this component, the
<whc:webhelp_indexterms_link> element must be specified in
the HTML file as in the following
example:<whc:webhelp_indexterms_link
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_indexterms_link. This component will contain a link to the
indexterms.html page.
webhelp_skin_resources)<whc:webhelp_skin_resources> element must be specified in the
HTML file as in the following
example:<whc:webhelp_skin_resources/>In the output, you will find a link to the skin resources.
The Index Terms Page is the page generated that presents index terms in the WebHelp Responsive output. The name of the HTML file that defines this page is wt_terms.html and it is located in the following directory: DITA-OT-DIR/plugins/com.oxygenxml.webhelp.responsive/oxygen-webhelp/page-templates.
The HTML page that is produced consists of an index terms section along with various other additional components, such as a title, menu, or search field.
An alphabet that contains the first letter of the documentation index terms is generated at the top of the index page. Each letter represents a link to a specific indices section.
The following components can be referenced in the Index Terms Page (wt_terms.html) file:
webhelp_publication_title)<whc:webhelp_publication_title> element must be
specified in the HTML file as in the following
example:<whc:webhelp_publication_title
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_publication_title.
webhelp_logo)<whc:webhelp_logo> element must be specified in the HTML file
as in the following
example:<whc:webhelp_logo
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In addition, you must also specify the path of the logo image in the
webhelp.logo.image transformation parameter (in the
Parameters tab in the transformation scenario). You can set
the webhelp.logo.image.target.url parameter to generate a link to a
URL when you click the logo image.
In the output, you will find an element with the class: wh_logo.
webhelp_search_input)<whc:webhelp_search_input> element must be specified in the
HTML file as in the following
example:<whc:webhelp_search_input
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_search_input.
webhelp_print_link)<whc:webhelp_print_link> element must be specified in the
HTML file as in the following
example:<whc:webhelp_print_link
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_print_link.
<whc:webhelp_top_menu> element must be specified
in the HTML file as in the following
example:<whc:webhelp_top_menu
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_top_menu.
You can control the maximum level of topics that will be included in the menu using
the webhelp.top.menu.depth transformation parameter (in the
Parameters tab of the transformation scenario).
For information about customizing the menu, see How to Customize the Menu.
webhelp_indexterms_link)indexterms.html). If the published documentation does not contain
any index terms, then the link will not be generated. To generate this component, the
<whc:webhelp_indexterms_link> element must be specified in
the HTML file as in the following
example:<whc:webhelp_indexterms_link
xmlns:whc="http://www.oxygenxml.com/webhelp/components"/>In the output, you will find an element with the class:
wh_indexterms_link. This component will contain a link to the
indexterms.html page.
webhelp_skin_resources)<whc:webhelp_skin_resources> element must be specified in the
HTML file as in the following
example:<whc:webhelp_skin_resources/>In the output, you will find a link to the skin resources.