Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Fahad Ayub 71 posts 238 karma points
    Jul 31, 2017 @ 09:17
    Fahad Ayub
    0

    Adding JS in one page only

    Hi, I have a template (textPage) from this template I have created multiple pages. Now In one of the page I wanna add some JS, any idea what is the best way to do it? I dont wanna add JS in Master page as it will affect the other pages.

    Thanks

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    Jul 31, 2017 @ 11:24
    Alex Skrypnyk
    100

    Hi Fahad

    You can use macro if you want to manage js references from Umbraco back office.

    Just create a new macro, make it available for use in RTE or as a picker, and render this data on your page.

    Macro documentation: https://our.umbraco.org/documentation/reference/templating/macros/Partial-View-Macros/

    Thanks,

    Alex

  • Fahad Ayub 71 posts 238 karma points
    Jul 31, 2017 @ 11:26
    Fahad Ayub
    0

    Thank you

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    Jul 31, 2017 @ 11:27
    Alex Skrypnyk
    0

    You are welcome, Fahad, have a nice day!

    Alex

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies