More in this section
Forums / General Discussions / Adding javascript to pages in Sitefinity 3.7

Adding javascript to pages in Sitefinity 3.7

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. John
    John avatar
    7 posts
    Registered:
    15 Sep 2011
    27 Jan 2012
    Link to this post
    How do you add javascript to pages in Sitefinity 3.7 without individually editing every master page? I have not been able to find a simple answer to this. Thanks
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    30 Jan 2012
    Link to this post
    Hi,

    You can add a custom control on your master pages or pages that will add the js code you want. Another option is using Generic Content control.
    It would not be possible to add js code without editing a master page( template) or a page.

    You can add some code to all pages if you inherit from the base page class - InternalPage, but this depends on results you want to have.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered