もう一度 Plone の質問に戻ります。
Plone 4 をインストールしましたが、Document アクション アイコンを下部ではなく上部に表示する必要があります。これを機能させるのに問題があります。誰かが助けることができます。
そのビューレットを(同じクラスとテンプレートで)移動する必要がある場合は、最初に、同じクラスのビューレットを目的のビューレットマネージャーに登録する必要があります(たとえば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"
/>
次に、これをgenericsetupプロファイル(ファイルviewlets.xml
)に追加します。
<?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>
より詳しい情報: