Fold sections in one topic file

Post here questions and problems related to editing and publishing DITA content.
catherine
Posts: 158
Joined: Fri Nov 10, 2017 8:16 am

Fold sections in one topic file

Post by catherine »

Hi, Oxygen support,
I have one topic file that includes Frequently Asked Questions.
In the topic file, say I have 10 questions and answers.
When I publish my documentation to webhelp, I hope that in this topic, all the answers are fold by default; For other articles, the sections should be unfold by default.
When users enter this topic page, the only see the questions, after they click the question, the answer will be unfold.


How to acheive this?
Costin
Posts: 833
Joined: Mon Dec 05, 2011 6:04 pm

Re: Fold sections in one topic file

Post by Costin »

Hello,

To add this extra functionality to your output, you should develop and use a JavaScript fragment, that you could pass to your output.
After you develop the JS fragment, to use it in the output, you should follow the instructions from this section of the User-Guide.

Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
catherine
Posts: 158
Joined: Fri Nov 10, 2017 8:16 am

Re: Fold sections in one topic file

Post by catherine »

Thanks for your information, Costin!
Post Reply