0

我正在尝试将 lightbox 和 slimbox 与 Composite c1 v3 一起使用。两者都不起作用。

我已经安装了相关的软件包,并且为这两个函数设置了正确的参数。结果是当我使用灯箱时,缩略图和图片都出现在页面上。当我使用 slimbox2 时,缩略图很好,但图片会打开一个新页面。

我用 IE 9 和 firefox 9.0.1 都试过了,结果相同。

就复合 C1 而言,我正在研究 Omnicorp 示例站点。

有什么问题的人吗?

4

2 回答 2

0

看起来包有一个错误,当站点在子文件夹中运行时,没有加载 javascripts 文件。您是否在子文件夹中运行您的网站?尝试解决这个问题。转到Functions透视图 -> Xslt 函数 -> 定位函数Composite.Media.ImageGallery.Slimbox2 -> 编辑其模板并修复文件链接,在开头添加~ :

<script id="slimbox2-js" src=" ~ /Frontend/Composite/Media/ImageGallery/Slimbox-2.04/js/slimbox2.js" type="text/javascript"></script> <link id="slimbox -2.04" media="screen" type="text/css" href=" ~ /Frontend/Composite/Media/ImageGallery/Slimbox-2.04/css/slimbox2.css" rel="stylesheet" />

还找到函数Composite.Web.Html.Lightbox,编辑其模板并修复文件的链接(添加~): <script id="html-lightbox-js" src=" ~ /Frontend/Composite/Web/Html/Lightbox /js/jquery.html-lightbox.js" type="text/javascript"></script> <link id="html-lightbox-css" media="screen" type="text/css" href=" ~ /Frontend/Composite/Web/Html/Lightbox/css/html-lightbox.css" rel="stylesheet" />

于 2012-03-02T08:01:16.697 回答
0

我刚刚尝试了Slimbox2 包,它在 Chrome 和 IE 中对我有用。我成功安装了软件包,转到 Content 中的页面并插入了该功能。然后我选择了 Media Folder 参数,并将其设置为常量并选择了一个文件夹路径。一旦发布,slimbox 就会按预期运行。但是,我没有使用 Omnicorp 演示。

这种行为对我来说听起来像是脚本的某些部分没有加载或加载顺序错误。Omnicorp 站点或其他软件包在已发布页面的头部是否有冲突的 jQuery 导入?

于 2012-03-02T06:25:52.493 回答