Expand All/Collapse All DITA Webhelp Output

Oxygen general issues.
chuonghdo
Posts: 3
Joined: Sat Oct 20, 2012 2:26 am

Expand All/Collapse All DITA Webhelp Output

Post by chuonghdo »

I was wondering if it's possible to add an expand/collapse-all button in the toc tree for Oxygen 14.1.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Expand All/Collapse All DITA Webhelp Output

Post by sorin_ristache »

Hello,

Would it be easier for you to locate an entry if you first expand all entries? Wouldn't the browser page become cluttered with every entry expanded in the Table of Contents? For a large Table of Contents, which is not unusual at all, I would find such a button counter-productive since locating an entry in the fully expanded Table of Contents would become tedious.


Regards,
Sorin
chuonghdo
Posts: 3
Joined: Sat Oct 20, 2012 2:26 am

Re: Expand All/Collapse All DITA Webhelp Output

Post by chuonghdo »

Hi Sorin, thanks for replying,

I'm not really trying to locate entries by expanding the entire tree structure, I'm trying to collapse all the nodes within the tree with a single button, instead of going through each individual entry and clicking on the book icon. As for location, you can just leave the button(s) at the top of the table of content frame, before the first entries in the tree.

On a side note, Oxygen 14.1 switched from the Dynatree js- script (used in 14.0) to proprietary js-script for managing the navigation tree. I was able to make such a collapse/expand button in 14.0 but haven't figured out how to do it yet in 14.1.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Expand All/Collapse All DITA Webhelp Output

Post by sorin_ristache »

Hi,

We will consider adding such a button in the Content tab.

Yes, we droppped dynatree.js in version 14.1 and we replaced it with a different JavaScript code, but I think adding this button should not be very different for the JavaScript code from version 14.1. What did you try so far, what difficulty is blocking you?


Regards,
Sorin
chuonghdo
Posts: 3
Joined: Sat Oct 20, 2012 2:26 am

Re: Expand All/Collapse All DITA Webhelp Output

Post by chuonghdo »

The only reason I was able to add such a button was because of the various tutorials and documentions available online for dynatree. For the new script, it's a bit of a steeper learning curve for me, who doesn't have a lot of programming experience. But I guess it's fine, I can just migrate the old webhelp pluggins into the new Oxygen.

Just out of curosity, was the reason for the change due to the bug with the old script where tree wouldn't sometimes collapse when you click on the book icon?
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Expand All/Collapse All DITA Webhelp Output

Post by sorin_ristache »

Hi,

No, actually there were some problems with updating the selection in the left side tree to reflect the user navigation between topics using the links in the left side content, for example the links in the Related Topics section.

Anyway, I think we won't come back to dynatree.js.


Regards,
Sorin
Post Reply