jquery integration in kentico 5.5 r2

Ei Dar Li Ko Ko asked on January 5, 2015 03:46

HI.. any one knows how to add jquery inside the kentico with the webpart or any other solution?

Correct Answer

Brenden Kehren answered on January 5, 2015 06:07

Have you read the documentation on how to set up Kentico and how to use the webparts and other elements of Kentico? I'd suggest starting there before getting in too far.

There is a module in the Development section called Javascript, create/upload your javascript files there. Then make sure you fix the no conflict issue, you can read about it here.

Then in your page template add a javascript webpart to your page and set the reference to it like so:

<script src="/CMSPages/GetResource.ashx?scriptfile=/CMSScripts/Custom/<sitecodename>/vendor/venobox.js" type="text/javascript"></script>

I highly recommend reading this single page of documentation if you plan to have any kind of success with how Kentico works, import/export and standards.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on January 5, 2015 03:50

Add a reference to the physical file location in your file system. There should be a javascript webpart you can do this with. If not, add a reference in your master page or the page(s) that need it.

0 votesVote for this answer Mark as a Correct answer

Ei Dar Li Ko Ko answered on January 5, 2015 04:02

HI.. i m beginner with Kentico... to link the files have to add the js files to the server App_Data file and then use the javascript web part to link? or link through the header file?

0 votesVote for this answer Mark as a Correct answer

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