English 中文(简体)
如何使我在ZMI中创建的页面模板从Plone Contents选项卡可见?
原标题:How do I make a Page Template that I created in the ZMI visible from the Plone Contents tab?
  • 时间:2011-05-30 03:27:24
  •  标签:
  • plone

我使用ZMI在Custom文件夹中创建了一个页面模板。

我使用ZMI将其复制到现有的Plone文件夹中。

我希望这个页面模板对象在Plone目录选项卡中可见。我必须做什么?

问题回答

如果模板不是其他内容的视图(即,它独立存在),则:

1) 创建一个文件夹(在Plone中)来包含模板。此文件夹将显示在导航中。

2) 将模板放入文件夹(使用ZMI),并将其短名称(ID)更改为index_html。这迫使它成为默认视图。

3) 不要在文件夹里放其他任何东西。至少不需要Plone的编辑、导航或查看机制。

或者,如果您允许链接类型显示在导航中,只需输入一个链接类型并将其指向模板即可。比index_html配方安全得多。

在Plone中创建一个文件夹。

/manage_properties Form添加到url,并添加一个新属性布局,其值为模板的id(可以保留在自定义文件夹中)。

您的模板现在是此文件夹的默认视图。

我们为这个问题创建了新的内容类型。





相关问题
How to go from uml to app in zope (plone)

I have watched this keynote that talk about develop an app based on an UML model, but I can t find any tutorial or docs about it. Do you know any tutorial or documentation to help me? thanks

Install Plone egg as a Python module on Windows

I have a Plone site (Plone version 3.1.2) that I need to install a product called GrufSpaces on - (http://plone.org/products/grufspaces). However, it is a production site and so I can t easily take it ...

Plone with Apache Proxy

I have a plone zinstance set up through Apache Proxy on OS X Server 10.5. The server is set up with a single vhost on port 80, with Proxy & Proxypass directives to the Plone zinstance: ...

Zope / Plone 3 product uninstsall issue

Hey all, I uninstalled a content type that I d previously added and afterward I m still getting a warning of 2010-01-06 22:43:50 WARNING OFS.Uninstalled Could not import class myclass from module ...

plone.app.blob or z3c.blobfile?

I need a blob file field as part of a content type in plone. plone.app.blob s BlobField should provide this, but I can t find how to get a URL to download the file including the original filename (e.g....

Moving (very old) Zope/Plone Site to Django

I am ask to move data from a (now offline) site driven by Plone to a new Django site. These are the version informations I have: Zope Version (unreleased version, python 2.1.3 ) Python Version 2.1....

热门标签