2011-11-22 39 views

回答

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> 

更多信息:

相關問題