Add JS in HorizontalTab.ascx

Gelli Samson asked on February 19, 2018 07:38


I am not sure if this is okay to do, but i need to add a script inside the horizontal tab. may i ask how can i do this? i am loading a script in cms editing page.

thanks, gelli

Recent Answers

David te Kloese answered on February 19, 2018 14:33


What should this script do? If you mean the following page you could include it there:


Note however that updating Kentico's own files isn't advised as it will harden any upgrades you'll need later on!

If you can tell us what you are trying to achieve we might have a better alternative...

0 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on February 21, 2018 15:38

Likewise, you can use altnerative Web Part Layouts to provide your own ASCX markup for that same web part and add your javascript there, but it's very easy to forget that you have a custom layout on that web part, often better to just add Javascript (if that's the type of script you are talking about) through the Page Template or Page tab.

If it's a server script block, then use the Layout on the web part and you can add it there. Without modifying the existing code.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.