Home Forums General XMetaL Discussion Structure view: how to set the initial collapse level? Reply To: Structure view: how to set the initial collapse level?

Derek Read

Reply to: Structure view: how to set the initial collapse level?

There is an API for this called SVCollapsedContainer (see the Programmers Guide for details).

However, because this is DITA that makes things a bit trickier since making modifications to the DITA customization's functionality is not really supported. In this case I don't see any potential for conflict with the normal DITA authoring scripts though.

The API doesn't work the same way as the built-in UI for the Structure View though. Calling the API collapses a particular element, so it would need to be called repeatedly on all the different nodes you want to collapse. I'll see if I can hack something together for you that does something similar.

I'm a bit curious this would be something people need for DITA though. How big are your topics?

Reply

Products
Downloads
Support