Fold sections in one topic file

catherine
Posts: 75

Fold sections in one topic file

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: 473

Re: Fold sections in one topic file

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: 75

Re: Fold sections in one topic file

Fri Jan 18, 2019 9:08 am

Thanks for your information, Costin!

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: U-Joe and 0 guests