Webhelp Classic - Prevent resizing TOC

Post here questions and problems related to editing and publishing DITA content.
mdslup
Posts: 167
Joined: Tue Mar 06, 2018 1:34 am

Webhelp Classic - Prevent resizing TOC

Post by mdslup »

When generating classic webhelp, it's possible to click and hold the line between the left-side table of content and the right side content, and move the divider left and right.

Is it possible to disable this?
Costin
Posts: 846
Joined: Mon Dec 05, 2011 6:04 pm

Re: Webhelp Classic - Prevent resizing TOC

Post by Costin »

Hi mdslup,

There is no predefined action or parameter you could use in the transformation scenario to hide / disable the splitter in the WebHelp Classic output.
However, there is a workaround which you could use to disable the splitter bar and make the side TOC fixed.
Specifically, you should edit the "toc_driver.js" file from the OxygenInstallDir\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.webhelp.classic\oxygen-webhelp\resources\skins\desktop folder and comment the entire if clause after the description:
/**
* @description Split page in leftPane and rightPane
*/

Code: Select all

    if ( $("html").attr("dir") != "rtl") {
$("#splitterContainer").splitter({
minAsize: 0,
maxAsize: 600,
splitVertical: true,
A: $('#leftPane'),
B: $('#rightPane'),
closeableto: 0,
animSpeed: 100
});
} else {
$("#splitterContainer").splitter({
minBsize: 0,
maxBsize: 600,
splitVertical: true,
A: $('#rightPane'),
B: $('#leftPane'),
closeableto: 100,
animSpeed: 100
});
}
This will disable the divider.

To re-enable it at a later time, you could just uncomment those block.

Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
mdslup
Posts: 167
Joined: Tue Mar 06, 2018 1:34 am

Re: Webhelp Classic - Prevent resizing TOC

Post by mdslup »

Ah, I didn't think about checking the js file. Thanks!
Post Reply