I am trying to use a lighbox to play a video on a page that generated in a topic, if I put the code on to a fixed page (one not generated from a topic) it works.
That's exactly what I was wondering. Here are my examples of using jquery with nopCommerce:
www.icc.com www.cablesys.com
The sliders on both homepages are using jquery. To do this, you just add in your necessary calls in the header view. Then inside the homepage text, I add in the necessary html with ID tags so that it notices which elements to initiate the calls. If you need to add in extra calls within the body, inside the Home view, I add those calls in after it calls the HomepageText topic.
If you are attempting to add in calls in the body with a specific topic, you will have to do it two ways, which start with the topic view.
1. Simply add the call inside the topic view. Keep in mind that it will load the call for every topic though. 2. You can use an IF statement inside the topic view to find IF you are SystemName = "testPage" then add your call to the body. ( I use this specific tactic to determine whether I need a full width page or need to display something specific for a special topic and what not )
Hope that helps.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.