Monday, October 12, 2015

(Tip4) How to make a mini-TOC in Responsive HTML5 output

In FrameMaker 2015 there is a subtle way of creating a mini-TOC for each topic by just configuring "HTML Page Template". A mini-TOC appears on each topic and is recommended if your topics are large.

To quickly experience mini-toc feature of FM publish feature, please do these steps:
  1. FM > Help > UserGuide > Open UserGuide.book
  2. Open Publish Pod (Esc p h) >> Edit Responsive HTML5
  3. Check ON "Use HTML Page Template" >> Select HTMLTemplate.htm ($FMHOME\fminit\Publisher\Template\Document\PageTemplate\HTMLTemplate.htm)
  4. Save & Close
  5. Publish Responsive HTML5

A mini-TOC gets created in the output:
minitoc.PNG
Mini-TOC Example
How does the mapping work in miniTOC w.r.t the Para Tags?
The para tags that we define in HTML Page Template at level1, level2 etc are scanned from the FM document and are brought at the desired level in selected output.
To show it diagramatically - I have taken a screenshot:
minitocConcept.PNG
HTML Template to mini-TOC mapping

The concept of keeping it in HTML is to provide flexibility in terms of styling & customizations via CSS.

To create a Page Template for your FM file from scratch you may follow the link: Adobe FrameMaker (2015 release)


I apologize that we haven't done our bit to make this feature simple . But suggestions are always welcome 

Do let us know if this makes it easy for you to get started.

No comments:

Post a Comment