Only show topic title in the output page

Post here questions and problems related to editing and publishing DITA content.
luodan
Posts: 19
Joined: Wed Aug 24, 2022 7:20 am

Only show topic title in the output page

Post 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?
You do not have the required permissions to view the files attached to this post.
Last edited by luodan on Wed Nov 02, 2022 1:07 pm, edited 1 time in total.
luodan
Posts: 19
Joined: Wed Aug 24, 2022 7:20 am

Re: Only show topic title in the output page

Post by luodan »

And the user can click the link on the title and jump into the topic.
chrispitude
Posts: 922
Joined: Thu May 02, 2019 2:32 pm

Re: Only show topic title in the output page

Post 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.
cosmin_andrei
Posts: 145
Joined: Mon Jun 12, 2017 10:50 am

Re: Only show topic title in the output page

Post 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.
Regards,
Cosmin
--
Cosmin Andrei
oXygen XML Editor and Author Support
luodan
Posts: 19
Joined: Wed Aug 24, 2022 7:20 am

Re: Only show topic title in the output page

Post 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
You do not have the required permissions to view the files attached to this post.
Last edited by luodan on Mon Nov 07, 2022 1:01 pm, edited 1 time in total.
chrispitude
Posts: 922
Joined: Thu May 02, 2019 2:32 pm

Re: Only show topic title in the output page

Post 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.
luodan
Posts: 19
Joined: Wed Aug 24, 2022 7:20 am

Re: Only show topic title in the output page

Post by luodan »

Thanks Chrispitude, I'll try it later.
Post Reply