KB User's Guide - SitePref Tab - Site Javascripts

NoteInformation symbol

You must have full administrative permissions in your space to perform these steps. This means access to the OwnerDocs, GroupDocs, SitePref, and Users tabs.

While a common Javascript applies across all KB subsites, the Site Javascripts screen allows each KB site to apply/remove Javascript to their internal and/or external sites.

  1.  The JavaScripts link can be found in the left navigation bar in the SitePref tab.

    The image below shows the JavaScripts link highlighted with a red box.

    Javascripts link in the SitePref sidebar

  2. Once you click the JavaScripts link, you will be led to the Site Javascripts screen where you will see three expandable panels, each with text entry fields:

    • Javascripts for Internal Site
    • Javascripts for External Site
    • Javascripts for KB Admin Tools

  3. Click your cursor into one of the JavaScript text fields.

    Please know that when you are creating/ modifying your script, opening and closing script tags (<script>...</script>) do not need to be included as the KB system automatically inserts these tags when the javascripts are loaded.

    • You may enter javascripts into Javascripts for Internal Site and/or Javascripts for External Site. Scripts can be applied to one site or or both internal and external.

      This way, your KB Group do not have to worry about including JavaScript in every document where it will be used. Nor will the UW KB Team have to necessarily incorporate JavaScript globally, when it may only desired on one KB site.

    • By entering javascript into the Javascripts for the KB Admin Tools field allows your subsite to replicate any JavaScript functionality when previewing documents.

    • Click on the Update button at the bottom of the page to save your changes. 




    Keywords:js scripts tags load loading loaded header footer   Doc ID:5341
    Owner:Leah S.Group:KB User's Guide
    Created:2007-01-29 19:00 CDTUpdated:2022-06-08 09:54 CDT
    Sites:KB User's Guide
    Feedback:  0   0