Page 1 of 1
Only show topic title in the output page
Posted: Wed Nov 02, 2022 12:56 pm
by luodan
Hi there,
Is it possible to only show topic titles in the output page without the content?
The following figure shows the current ditamap:
image.png
However, each topic has its own content which expands the output page, I was wondering if there's a way to accomplish the purpose with the topicref element?
Re: Only show topic title in the output page
Posted: Wed Nov 02, 2022 1:05 pm
by luodan
And the user can click the link on the title and jump into the topic.
Re: Only show topic title in the output page
Posted: Wed Nov 02, 2022 11:43 pm
by chrispitude
Hi luodan,
Normally this is what the TOC (PDF) or navigation (WebHelp) is for.
However, if you are trying to add just a local "mini-TOC" list of links to your parent introduction topic, you could try the following plugin:
https://github.com/chrispy-snps/DITA-mini-toc-element
although I see you are using the
@chunk attribute and I haven't tried it with that.
Re: Only show topic title in the output page
Posted: Thu Nov 03, 2022 2:31 pm
by cosmin_andrei
Hello,
Could you please let us know the output type do you want to achieve? It would be great if you could provide us more details about your use-case and a screenshot.
Re: Only show topic title in the output page
Posted: Mon Nov 07, 2022 1:01 pm
by luodan
Hi Cosmin,
I used another workaround for this case:
I moved the topicrefs to the parent topic (.dita file) and orgnized them into li tags, the output file looks like this:
image.png
Re: Only show topic title in the output page
Posted: Tue Nov 08, 2022 2:47 pm
by chrispitude
Hi Luodan,
You might want to try the "DITA-mini-toc-element" plugin I mentioned earlier. I think it automatically does what you are doing manually.
Re: Only show topic title in the output page
Posted: Wed Nov 09, 2022 4:56 am
by luodan
Thanks Chrispitude, I'll try it later.