2013-02-27 10 views

答えて

9

オプション1

タイプは、ナビゲーションに含まれている告げるPloneの設定があります。 ZMI> portal_propeties> navtree_properties> metaTypesNotToListに移動し、画像を追加してください。各画像の

オプション2

、トグルチェックボックスは、Imageの[設定]タブの "ナビゲーションに除外"。

3

コンテナ単位で行う必要がある場合は、sc.contentrules.metadataに含まれるコンテンツルールを使用できます。

ちょうどあなたbuidoutに追加しExcludeFromNavフィールドを設定するには、手動で設定します。

そうする別の方法は、このようなもので、プロジェクトプロファイルでcontentrules.xmlを含めることです。

<?xml version="1.0"?> 
<contentrules purge="True"> 
<rule name="exclude-on-add" title="Images are excluded from navigation when added" 
    description="" enabled="True" 
    event="zope.lifecycleevent.interfaces.IObjectAddedEvent" 
    stop-after="False"> 
    <conditions> 
    <condition type="plone.conditions.PortalType"> 
    <property name="check_types"> 
    <element>Image</element> 
    </property> 
    </condition> 
    </conditions> 
    <actions> 
    <action type="sc.contentrules.actions.ExcludeFromNav"> 
    <property name="exclude">True</property> 
    </action> 
    </actions> 
</rule> 
<assignment name="exclude-on-add" bubbles="True" enabled="True" location="/your-container"/> 
</contentrules> 
1

あなたはSite SetupメニューでNavigationのオプションを持っています。 表示されているコンテンツタイプがイメージの目盛りを削除し、イメージがサイトのナビゲーションおよびサイトマップに表示されなくなりました。

関連する問題