Using the TOC proxy for html output

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
fvila
Propeller Head
Posts: 46
Joined: Fri Feb 27, 2015 3:44 am

Using the TOC proxy for html output

Post by fvila »

Hi,

I've been asked to investigate the possibility of creating a frameless html output with a TOC component.
I tried inserting a TOC proxy into the masterpage. I get a flat list of links, and nothing seems to distinguish a 1st level TOC entry from a second-level.
Is there any way to achieve style differences to distinguish between levels (indentation - bold for main entries)? Is there any way to imagine collapsing TOC entries and only expanding the selected item?
Here's a level 1 entry:

Code: Select all

<table cellspacing="0" cellpadding="0" class="GenTOCTable1" style="width: 100%;">
                <colgroup><col style="width: 0pt;">
                <col>
                <col style="width: 10pt;">
                </colgroup><tbody><tr>
                    <td class="mcReset">
                    </td><td class="GenTOCText1"><a href="B_Feature Topics/Features.htm" class="GenTOCText1">CH 2 Features</a>
                    </td>
                    <td class="GenTOCPageText1">
                        <madcap:xref data-mc-xref-target="" class="TOCPageNumber" style="mc-format: '{page}';"> <!--[CDATA[ ]]--></madcap:xref>
                    </td>
                </tr>
            </tbody>
</table>
Here's a level 2 entry:

Code: Select all

<table cellspacing="0" cellpadding="0" class="GenTOCTable1" style="width: 100%;">
                <colgroup><col style="width: 0pt;">
                <col>
                <col style="width: 10pt;">
                </colgroup><tbody><tr>
                    <td class="mcReset">
                    </td><td class="GenTOCText1"><a href="B_Feature Topics/Feature1.htm" class="GenTOCText1">Feature 1</a>
                    </td>
                    <td class="GenTOCPageText1">
                        <madcap:xref data-mc-xref-target="" class="TOCPageNumber" style="mc-format: '{page}';"> <!--[CDATA[ ]]--></madcap:xref>
                    </td>
                </tr>
            </tbody>
</table>
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Using the TOC proxy for html output

Post by NorthEast »

Don't use the TOC proxy, it's for print/PDF targets - you want to use a menu proxy for HTML5 targets.

See the help: http://webhelp.madcapsoftware.com/flare ... _Proxy.htm
fvila
Propeller Head
Posts: 46
Joined: Fri Feb 27, 2015 3:44 am

Re: Using the TOC proxy for html output

Post by fvila »

@Dave: Thanks that works...
Post Reply