Classes and WebHelp components

kgajda
Posts: 14

Classes and WebHelp components

Wed Aug 16, 2017 10:36 pm

Hi!

I am just trying to find an exhaustive list of the WebHelp template components available to be referenced.
I found this page
https://www.oxygenxml.com/doc/versions/ ... n_page_toc,
and it seems like there are additional ones for use breaking down the tiles
(<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>)
Are there any for breaking out the individual pieces of the tree/TOC? I need to be able to reference certain pieces/topic of the TOC in the template.
Thanks so much for your help :)
Kim
alin
Site Admin
Posts: 117

Re: Classes and WebHelp components

Thu Aug 17, 2017 3:34 pm

Hi Kim,

The only way to expand the TOC template component is like this:

Code: Select all

<whc:webhelp_main_page_toc>
    <whc:component_content/>
</whc:webhelp_main_page_toc>


This way you can insert some custom HTML fragment inside the component, but before or after its actual content (topic links). For example:

Code: Select all

<whc:webhelp_main_page_toc>
   <div class="before">BEFORE</div>
   
   <whc:component_content/>
   
   <div class="after">AFTER</div>
</whc:webhelp_main_page_toc>


Regards,
Alin
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: No registered users and 1 guest