jcarousel插件无法在sitecore预览模式下工作 [英] jcarousel plugin is not working in sitecore preview mode

查看:94
本文介绍了jcarousel插件无法在sitecore预览模式下工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

jquery与pageeditor文章冲突

这篇关于jcarousel插件无法在sitecore预览模式下工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆