Classes and WebHelp components

Post here questions and problems related to editing and publishing DITA content.
kgajda
Posts: 32
Joined: Wed Aug 16, 2017 8:07 pm

Classes and WebHelp components

Post by kgajda »

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: 275
Joined: Thu Dec 24, 2009 11:21 am

Re: Classes and WebHelp components

Post by alin »

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
Post Reply