Skip to main content
Inspiring
March 10, 2024
Question

Creating mini toc for structured document

  • March 10, 2024
  • 3 replies
  • 607 views

Hello.
I'm here to ask the problem to make mini toc automatically.
I'm dealing with structured document so I can't use the menu to make mini toc.

Even I try to convert xml to fm file or erasing structure menu, I couldn't make mini toc.
Is there anyway to make mini toc automatically for structured document with scripting or somthing?
I wish I can get some tips to learn about this.
Thank you for reading this.

 

ps. In ditamap, there is the top level topic xml document and 2 level topics are under top topc as different documents like the below image.

This topic has been closed for replies.

3 replies

frameexpert
Community Expert
Community Expert
March 11, 2024

Here is an 11 minute video that outlines a way to add a mini-TOC to a FrameMaker DITA topic. It's unedited and a bit rough, but it should give you an idea of what is possible. Please let me know if you have any questions or comments.

 

https://youtu.be/fPfq_PmosE8

Known Participant
March 11, 2024

Thank you for ur help and kindness always. I will check it. 

Known Participant
March 11, 2024

Oh, I've watched your youtube and that video oviously so I was learning to make xsl too.
I have a question about it.
My ditamap structure has top level xml.
and have a few 2 level xmls.

all xml is structured with only one topic.

In this condition, I try to make mini toc in body of top level xml.
is it possible to get target Id from other xml which are 2 level xmls?

Bob_Niland
Community Expert
Community Expert
March 10, 2024

I don't work in structured FM, so have no direct insight. I see that the same question was asked here in 2017, and it didn't get an answer then.

Assuming that the direct answer is: you can't,
I'm wondering if a work-around might be to generate a regular …toc.fm file whose scope is restricted to the chapter, not make it part of the .book, and import its Flow A as a Text Inset in the real chapter file. What would need testing is making sure that the hypertext in the final document works.

Known Participant
March 11, 2024

Thank you for ur answer. I will consider more.