如何在plone灵巧视图中包含图像库?

如何在plone灵巧视图中包含图像库?,plone,image-gallery,dexterity,Plone,Image Gallery,Dexterity,我将TTW(通过Web)定义为Plone(4.3.4)灵巧内容类型。内容类型应该包含我在内容类型设置中定义的图像 我在portal_skins->custom中为该内容类型设置了一个自己的视图作为页面模板,该模板将该内容类型的字段和包含的图像显示为一个库。我想使用plonetruegallery附加组件将图像显示为图库 以下是我使用的页面模板: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" xmlns:tal="htt

我将TTW(通过Web)定义为Plone(4.3.4)灵巧内容类型。内容类型应该包含我在内容类型设置中定义的图像

我在portal_skins->custom中为该内容类型设置了一个自己的视图作为页面模板,该模板将该内容类型的字段和包含的图像显示为一个库。我想使用plonetruegallery附加组件将图像显示为图库

以下是我使用的页面模板:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
  xmlns:tal="http://xml.zope.org/namespaces/tal"
  xmlns:metal="http://xml.zope.org/namespaces/metal"
  xmlns:i18n="http://xml.zope.org/namespaces/i18n"lang="en"
  metal:use-macro="context/main_template/macros/master" i18n:domain="plone">
<body>
 <metal:content-core fill-slot="content-core">
  <metal:content-core define-macro="content-core"
                    tal:define="widgets nocall:context/@@view">

    <img tal:replace="structure context/@@placegalleryview" />

   <div tal:replace="structure widgets/++widget++myfield1/render">
        Topic of the story
   </div>

   <div tal:replace="structure widgets/++widget++myfield2/render">
        The story
   </div>

  </metal:content-core>
 </metal:content-core>
</body>
</html>

故事的主题
故事
首先,看起来一切都很好,通过“@@placegalleryview”函数集成plonetruegallery效果很好。但有一种奇怪的行为,绿色编辑栏中的下拉菜单不起作用。 html页面源代码的简短视图显示了原因:@placegallerview函数插入了一个完整的页面,包括标记和所有css声明

我的问题是:有没有一种简单的方法来集成plonetruegallery,还是我必须集成我自己的基于javascript的gallery(例如bootstrap)


希望有人能给我一个答案。对于新手和TTW工作人员来说,文档更少。这也是我写这个简单问题的原因

collective.plonetruegallery
本身建议使用
标记将库嵌入另一个页面:

内联画廊 要在另一页中显示图库,请尝试以下操作:

<object data="path/to/gallery/@@placegalleryview" height="400" width="500">
    <param name="data" value="path/to/gallery" />   
</object>

您可以用它代替


更多信息:

欢迎来到SO!因为你是新来的,你可能想检查一下。