I would like to create a On This Page TOC or Links on each topic in which Heading 2 or Heading 3 sub-sections are listed in the top right corner of the topic allowing the user to "jump" to these sub-sections and not have to scroll down and read the whole topic in order to find them.
See Mini TOC in this topic. http://www.grainge.org/pages/authoring/rh_tour/rh2019/miscellaneous/rh2019_misc.htm
You should be able to format it to appear top right rather than the default top left.
Thanks, Peter for your quick response.
A few questions:
I haven't tried to apply it across a project but my thinking is
Let us know how you get on.
You can't fix the align right part in the UI but you can in Source view. Locate the minitoc in source view and add align="right" as shown below.
You didn't say whether your output is frameless or responsive. In frameless the mini-toc is not within the topic, it is to the right and you can't change that. What I have covered is for responsive.
To clarify, in Frameless you don't have to do anything for the mini-toc. It is automatic. In the skin you configure the heading levels you want to appear.
You can see it in Frameless on my site. http://www.grainge.org
It's on any page with sub headings such as http://www.grainge.org/pages/authoring/rh_tour/rh2019/miscellaneous/rh2019_misc.htm
It is for responsive HTML
OK so answers above apply.