How to insert JS in Topic page

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 năm cách đây
Does anyone know how to insert Java Script into topic pages?  The script needs to go in the head section but the only head section I can find is in the Root.Master page.

Chad
13 năm cách đây
Correct the head is stored across all pages.  I would place a contentplaceholder in the head section of root.master and then another one in 1column.master 2column.master etc and then you will be able to use it in topic pages.  But then you will kind of have the same issue that ALL topic pages will share the same JS. You could then maybe alter you js to check the url or something.  

Hope this helps.

Thanks,
Matthew
13 năm cách đây
The lightbox on the product page works off the jquery.js, but I don't see how it is referenced.  How is the lightbox implemented in the product page?

Chad
13 năm cách đây
The lightbox code is registered in the code behind of the user control.
13 năm cách đây
Got it. Thank you.

Chad
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.