Skip to main content
January 12, 2015
Question

How to append to files

  • January 12, 2015
  • 1 reply
  • 322 views

Hey all I have made a few custom JS scripts that modify default behavior of a few RoboHelp functions, this works nicely however I have to manually include the JS file on every page. So my question is this; how do I programmatically append my script tags to the bottom of each page ether at build time or as a RoboHelp Scrip?

Thanks

    This topic has been closed for replies.

    1 reply

    Willam van Weelden
    Inspiring
    January 12, 2015

    There are two ways to do this (depending on your RoboHelp version)

    1. Add the JS to the footer of a master page and assign the master page on generation. (In the SSL settings.)

    2. Use the afterPublish event to run a script automatically whenever an output was generated. See Using the new RoboHelp 10 scripting events | Adobe Developer Connection for an introduction.

    Kind regards,

    Willam

    asloan
    Known Participant
    January 16, 2015

    I've successfully used option #1 that Willam mentioned to include the JavaScript for Google Analytics.

    Regards,

    Alan