Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
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
Thank you
You are welcome, Fahad, have a nice day!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
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
Thank you
You are welcome, Fahad, have a nice day!
Alex
is working on a reply...