This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
pfwbged.folder/src/pfwbged/folder/profiles/default/types/pfwbgedlink.xml

40 lines
1.8 KiB
XML

<?xml version="1.0"?>
<object name="pfwbgedlink" meta_type="Dexterity FTI" i18n:domain="plone"
xmlns:i18n="http://xml.zope.org/namespaces/i18n">
<property name="title" i18n:translate="">Link to Folder</property>
<property name="icon_expr">string:${portal_url}/++resource++pfwbgedlink_icon.png</property>
<property name="factory">pfwbgedlink</property>
<property name="add_view_expr">string:${folder_url}/++add++pfwbgedlink</property>
<property name="link_target"></property>
<property name="immediate_view">view</property>
<property name="global_allow">False</property>
<property name="filter_content_types">True</property>
<property name="allow_discussion">False</property>
<property name="default_view">view</property>
<property name="view_methods">
<element value="view"/>
</property>
<property name="default_view_fallback">False</property>
<property name="add_permission">cmf.AddPortalContent</property>
<property name="klass">pfwbged.folder.Link</property>
<property name="behaviors">
</property>
<!-- DO NOT use a model_source or it removes manually added fields while reapplying the profile -->
<!--property name="model_source" /-->
<property name="schema">pfwbged.folder.ILink</property>
<alias from="(Default)" to="(dynamic view)"/>
<alias from="edit" to="@@edit"/>
<alias from="sharing" to="@@sharing"/>
<alias from="view" to="(selected layout)"/>
<action title="View" action_id="view" category="object" condition_expr=""
description="" icon_expr="" link_target="" url_expr="string:${object_url}"
visible="True">
<permission value="View"/>
</action>
<action title="Edit" action_id="edit" category="object" condition_expr=""
description="" icon_expr="" link_target=""
url_expr="string:${object_url}/edit" visible="True">
<permission value="Modify portal content"/>
</action>
</object>