3
再次回到Plone問題。如何將documentactionsmanager從viewletmanager移動到另一個?
我安裝了Plone 4,我需要在頂部而不是底部顯示文檔操作圖標。無法讓這個工作。有人可以幫忙。
再次回到Plone問題。如何將documentactionsmanager從viewletmanager移動到另一個?
我安裝了Plone 4,我需要在頂部而不是底部顯示文檔操作圖標。無法讓這個工作。有人可以幫忙。
如果你只需要移動的Viewlet(與同一類和模板),首先你必須用同一個類中的Viewlet註冊到你想要的viewletmanager(假設爲前plone.app.layout.viewlets.interfaces.IAboveContentBody
):
<browser:viewlet
name="plone.abovecontenttitle.documentactions"
manager="plone.app.layout.viewlets.interfaces.IAboveContentBody"
class="plone.app.layout.viewlets.content.DocumentActionsViewlet"
permission="zope2.View"
/>
<?xml version="1.0"?>
<object>
<order manager="plone.abovecontentbody" skinname="Plone Default">
<!-- this will place your viewlet before all the others.
you can also use a viewlet's name for a relative position -->
<viewlet name="plone.abovecontenttitle.documentactions" insert-before="*"/>
</order>
<hidden manager="plone.belowcontentbody" skinname="Plone Default">
<viewlet name="plone.abovecontenttitle.documentactions"/>
</hidden>
</object>
更多信息:
viewlets.xml
)添加此