Twitter bootstrap PIMCore转盘问题

Twitter bootstrap PIMCore转盘问题,twitter-bootstrap,pimcore,Twitter Bootstrap,Pimcore,我第一次使用PIMCore建立了一个新网站,并且很好地掌握了它。然而,我遇到了一个让我困惑的问题,在谷歌上寻找答案被证明是徒劳的 我已经添加了一个区块,然后在其中放置了画廊旋转木马功能,效果非常好。我可以在第一张幻灯片中添加图像、标题和说明,但是,所有后续幻灯片都不显示任何图像,也不显示标题和说明的输入。您只得到两条水平线,我认为这是输入框(见下文) 即使我自己编写了旋转木马功能,只留下图像、标题和描述作为输入字段,结果仍然是一样的。查看PIMCore 4上的演示套件,首页旋转木马按预期工作,

我第一次使用PIMCore建立了一个新网站,并且很好地掌握了它。然而,我遇到了一个让我困惑的问题,在谷歌上寻找答案被证明是徒劳的

我已经添加了一个区块,然后在其中放置了画廊旋转木马功能,效果非常好。我可以在第一张幻灯片中添加图像、标题和说明,但是,所有后续幻灯片都不显示任何图像,也不显示标题和说明的输入。您只得到两条水平线,我认为这是输入框(见下文)

即使我自己编写了旋转木马功能,只留下图像、标题和描述作为输入字段,结果仍然是一样的。查看PIMCore 4上的演示套件,首页旋转木马按预期工作,然而,在基本示例和图库中,它如上所示,这对我来说意味着旋转木马代码中存在一个主要问题


如果您有任何帮助,我们将不胜感激。

在这种情况下,最好在编辑模式下禁用旋转木马插件,然后一个接一个地显示图像

例如:

<script>
$('.carousel').carouselPlugin({
  ////////////
});
</script>

<div class="<?= $this->editmode?"carousel-editmode":"carousel" ?>">
  <?php // In editmode just display images one after another, or just use a multi-href field instead ?>
</div>

$('.carousel').carouselPlugin({
////////////
});

在这种情况下,在editmode下禁用carousel插件,然后一个接一个地显示图像是很有意义的

例如:

<script>
$('.carousel').carouselPlugin({
  ////////////
});
</script>

<div class="<?= $this->editmode?"carousel-editmode":"carousel" ?>">
  <?php // In editmode just display images one after another, or just use a multi-href field instead ?>
</div>

$('.carousel').carouselPlugin({
////////////
});

我知道这是关闭的,但我提出了以下解决方案,使旋转木马在pimcore admin中保持完整:

位于:website/views/areas/gallery carousel/view.php

<script type="text/javascript">
$(document).ready(function() {
    $('.pimcore_editable .pimcore_tag_textarea').height(30);
    $('.pimcore_editable .pimcore_tag_input').height(30);
});
</script>

$(文档).ready(函数(){
$('.pimcore\u editable.pimcore\u tag\u textarea')。高度(30);
$('.pimcore_可编辑.pimcore_标记_输入')。高度(30);
});

我知道这已经关闭,但我提出了以下解决方案,可以在pimcore admin中保持转盘的完整性:

位于:website/views/areas/gallery carousel/view.php

<script type="text/javascript">
$(document).ready(function() {
    $('.pimcore_editable .pimcore_tag_textarea').height(30);
    $('.pimcore_editable .pimcore_tag_input').height(30);
});
</script>

$(文档).ready(函数(){
$('.pimcore\u editable.pimcore\u tag\u textarea')。高度(30);
$('.pimcore_可编辑.pimcore_标记_输入')。高度(30);
});

谢谢你的邀请。我只需要确保结果输出为我们的内容经理所接受,以便进行任何更改等。感谢Igor。我只需要确保结果输出为我们的内容经理所接受,以便进行任何更改等。