Skip to main content
Jan 12, 2015 1:03 AM UTC
Question

How to append to files

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 is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    Willam van Weelden
    Inspiring
    Jan 12, 2015 10:17 AM UTC

    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

    Translate
    asloan
    Known Participant
    Jan 16, 2015 5:45 PM UTC

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

    Regards,

    Alan

    Translate