Add DIV ID to each TOC Node

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
zappy0
Propeller Head
Posts: 39
Joined: Fri Mar 25, 2016 2:19 pm

Add DIV ID to each TOC Node

Post by zappy0 »

I have a tri-pane project that is output as HTML5. When I right-click any node in the TOC / Contents and select Inspect, I can see the node is wrapped in a DIV.

Code: Select all

<div>
    <span class="label">
        <a href="#ManageSystemPermissions.htm?TocPath=Administration%257CUsers%2520and%2520Groups%257C_____3">
            <img src="Skins/Default/Stylesheets/Images/transparent.gif" class="toc-icon" alt="Topic">Manage System Permissions</a>
    </span>
</div>
I have been asked to provide a unique ID for each of these DIV tags. I assume this is needed to enable automated testing. In the example above, the result might be <div id="getStarted">

I have searched this Forum and looked through the Properties dialog box in Flare for a TOC node but have not found a solution. Do you have a trick for getting DIV IDs in the TOC?

Thank you!
NorthEast
Master Propellus Maximus
Posts: 6365
Joined: Mon Mar 05, 2007 8:33 am

Re: Add DIV ID to each TOC Node

Post by NorthEast »

Flare doesn't allow you to add IDs to TOC items.

The older WebHelp output allowed you to add classes to TOC items, but this isn't directly supported in any HTML5 outputs. Whilst you can apply classes to TOC items in HTML5 outputs with some manual hacking, I wouldn't necessarily advise it, as WebHelp is deprecated so this method might not exist for much longer.

I'd go back and ask why they need unique IDs. Show them the help output and its limitations, and find a better way to test it.
Post Reply