jcarousel插件无法在sitecore预览模式下工作 [英] jcarousel plugin is not working in sitecore preview mode
问题描述
jcarousel插件正在工作但是如果我们在sitecore预览模式下运行相同的页面(在sitecore中:点击顶部菜单中的Presentation。点击功能区中的预览)然后这个插件无效。如果您有合适的解决方案,请告诉我。
jcarousel plugin is working when we run the page on browser but if we run the same page in sitecore preview mode(In sitecore: Click on Presentation in the top menu. Click on Preview in the ribbon) then this plugin is not working. please let me know if you have solution that would be helpful.
推荐答案
Sitecore 的哪个版本你用?我认为问题可能是 jquery 与原型冲突。
Which version of Sitecore do you use? I think the problem might be with jquery conflicting with prototype.
您可以尝试在 noConflict
模式中使用 jquery :
You can try to use jquery in noConflict
mode:
var $j = jQuery.noConflict();
简而言之,在初始化jcarousel之前添加此行,例如:
In nutshell, add this line before the place you initialize your jcarousel, e.g.:
var $j = jQuery.noConflict(); // switch jquery to noconflict mode
$j('.jcarousel').jcarousel(); // this is your initalization of jcarousel
这篇关于jcarousel插件无法在sitecore预览模式下工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!