Skip to main content
Known Participant
September 22, 2010
Question

Automatically expanding all drop-down and expanding text in a project.

  • September 22, 2010
  • 1 reply
  • 5497 views

I am using RH8. The project I am working on has a lot of drop-down text and expanding text.  I was wondering if there was an easy way to auto-expand all the text within the project.

Any information on how I might be able to do this without manually doing it would be much appreciated.

This topic has been closed for replies.

1 reply

Willam van Weelden
Inspiring
September 22, 2010

Hi,

What exactly do you want? Do you want a button to allow users to show/hide all dropdowns on a page? Do you want to delete all dropdowns from your source files? Do you want dropdowns to allways print? Do you want all dropdowns to be open when a page loads?

Also, do you use twisties for dropdowns. If so, which method do you use? The standard RoboHelp method of a custom method (see http://www.grainge.org/pages/authoring/twisty/twisty.htm)

Greet,

Willam

MackDuffAuthor
Known Participant
September 22, 2010

Basically I would like to have the drop-down open by default when a page loads.

The drop-down/expand links have been created using the 'Create expanding hotspot and text' and 'Create drop-down hotspot and text' from the DHTML menu in RH.

We are trying to generate a quick PDF from the output .chm file, but all the drop-down and expanded text does not appear in the PDF, which is problematic. I was thinking if we could auto-expand all the text by default, it will convert properly.

Thanks,

Mack

Willam van Weelden
Inspiring
September 22, 2010

Hi,

That will probably work, but it kind of defeats the purpose of having a dropdowns.

Why do you create a PDF from the CHM? Perhaps it's possible to generate the PDF from RH. You don't need to modify everything.

A second option is to allways show dropdowns in your print output. I don't use CHM's much, but if you create a pdf, you probably use the print option. In that case, you may want to control the dropdowns using css. This has double benefits: no coding for you and whenever a user prints a page, they allways print the dropdowns. To do this, add @media print {div.droptext { display: block !important; } } to your style sheet.

If you really want all dropdowns opened by default, your best bet is to have a script on every page that opens all dropdowns when the page is opened. This might be a lot of work, as you will need to add the script to every topic (or sneak it in by misusing the header/footer of the masterpage).

Greet,

Willam