Fold sections in one topic file

catherine
Posts: 82
Joined: Fri Nov 10, 2017 8:16 am

Fold sections in one topic file

Post by catherine » Thu Dec 27, 2018 3:28 pm

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: 595
Joined: Mon Dec 05, 2011 6:04 pm

Re: Fold sections in one topic file

Post by Costin » Mon Jan 07, 2019 12:39 pm

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: 82
Joined: Fri Nov 10, 2017 8:16 am

Re: Fold sections in one topic file

Post by catherine » Fri Jan 18, 2019 9:08 am

Thanks for your information, Costin!

Post Reply