Skip to main content
Known Participant
October 30, 2012
Answered

Adding a button before the TOC button in a WebHelp Pro navigation bar

  • October 30, 2012
  • 6 replies
  • 1417 views

My client wnats to add a "Home " button to the left of the TOC button in the navigation bar. I can ad buttons to the right of the "standard buttons": TOC, Search, Print, and Glossary, but even if I go and edit the skn file and add the "Home" botton before the TOC one, it still displays to the right. Is there anything I am missing?

Thanks.

Using RoboHelp 9 and Robohelp Server.

Thanks

    This topic is closed to new replies. Start a new post to keep the conversation going.
    Correct answer Willam van Weelden

    Hi,

    I don't have RH Server, so this is a bit of a guess but I think one method will work.

    Modify the toolbar order in whstart.js.

    1. In whstart.js, go to line 184 (RH10), it has the text else if (nMsgId == WH_MSG_TOOLBARORDER).

    2. Below the opening bracket add the following code:

    oMsg.oParam = "CUSTOM|toc|glo|idx|fts|blackblock|searchform|banner";

    return false;

    3. Open whskin_tbars.htm and go to the bottom of the file to find a few calls starting with addButton.

    4. Copyt the id of the button (customxxxx) and replace the text CUSTOM in whstart.js.

    Modify whskin_tbars.htm

    1. Open whskin_tbars.htm

    2. Go to the bottom of the file and find a few calls starting with addButton.

    3. Set the lines in the order you want the buttons to appear. (Don't forget the 'blankblock' button to push certain content to the right of the toolbar.

    4. Remove the call to the function ReSortToolbarButtons() from the file whskin_tbars.js.

    If WebHelp does still resort the buttons, try adding return false; as the first code in the function ReSortToolbarButtons() in the file whtbar.js

    Hope this helps,

    Greet,

    Willam

    6 replies

    Peter Grainge
    Community Expert
    Community Expert
    October 31, 2012

    With ordinary WebHelp the layout allows you to set the order of the buttons but that option is not in the Pro version.

    You said you placed the Home button before the Contents button in the SKN file but did you change the ID numbers? I wonder if that forces the order. Backup first.

    Please post whether or not that worked.


    See www.grainge.org for RoboHelp and Authoring tips

    @petergrainge

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Mosens85Author
    Known Participant
    November 1, 2012

    Thanks Peter,

    I tried to change the ID numbers, but it didn't work...

    Willam van Weelden
    Willam van WeeldenCorrect answer
    Inspiring
    November 5, 2012

    Hi,

    I don't have RH Server, so this is a bit of a guess but I think one method will work.

    Modify the toolbar order in whstart.js.

    1. In whstart.js, go to line 184 (RH10), it has the text else if (nMsgId == WH_MSG_TOOLBARORDER).

    2. Below the opening bracket add the following code:

    oMsg.oParam = "CUSTOM|toc|glo|idx|fts|blackblock|searchform|banner";

    return false;

    3. Open whskin_tbars.htm and go to the bottom of the file to find a few calls starting with addButton.

    4. Copyt the id of the button (customxxxx) and replace the text CUSTOM in whstart.js.

    Modify whskin_tbars.htm

    1. Open whskin_tbars.htm

    2. Go to the bottom of the file and find a few calls starting with addButton.

    3. Set the lines in the order you want the buttons to appear. (Don't forget the 'blankblock' button to push certain content to the right of the toolbar.

    4. Remove the call to the function ReSortToolbarButtons() from the file whskin_tbars.js.

    If WebHelp does still resort the buttons, try adding return false; as the first code in the function ReSortToolbarButtons() in the file whtbar.js

    Hope this helps,

    Greet,

    Willam