1

所以这是交易。我在 plone 中的真正画廊遇到了很多麻烦,所以我买了带有十二主题的 Galleria 幻灯片。我做了正常的事情来运行 Galleria,但现在出现了问题。

这是 HTML 部分:

<div id="content"> 
    <!-- GALLERIA -->
    <div id="galleria">
    </div>
    <!-- /GALLERIA -->
</div>

使用这条规则,我会抓取所有带有图像的链接并将它们放入我的 Galleria DIV 中:

<replace css:content=".item a" css:theme-children="#galleria" />

所以这是这个操作的结果:

<!-- GALLERIA -->
    <div id="galleria">
        <a href="...">
            <img src="..." />
        </a>
        <a href="...">
            <img src="..." />
        </a>
        <a href="...">
            <img src="..." />
        </a>
    </div>
<!-- /GALLERIA -->

所以这就是问题所在。虽然来自 Galleria 的所有 js 和 css 文件都已成功加载,但没有任何反应。Galleria 应该在图像周围放置一些 div 来创建幻灯片。

Javascript 已打开。jQuery 正在工作。

有没有人知道为什么这在 plone 中不起作用?

编辑:Chrome 在他的控制台中删除此错误消息:

Uncaught SyntaxError: Invalid regular expression: /http://localhost:8080/lox/home/++theme++lox.responsive/galleria/themes/twelve/galleria.twelve.css/: Nothing to repeat galleria-1.2.9.js:847
(anonymous function) galleria-1.2.9.js:847
jQuery.extend.each jquery.js:648
jQuery.fn.jQuery.each jquery.js:270
Utils.loadCSS galleria-1.2.9.js:846
(anonymous function)
4

1 回答 1

0

转动这个:

$('link[rel=stylesheet]').each(function() {
    if ( new RegExp( href ).test( this.href ) ) {
        link = this;
        return false;
    }
    return false;
});

进入这个:

$('link[rel=stylesheet]').each(function() {
    /*if ( new RegExp( href ).test( this.href ) ) {
        link = this;
        return false;
    }*/
    return false;
});

达成协议。:)

于 2013-03-11T14:22:50.380 回答