Rev | Line | |
---|
[220] | 1 | <?xml version="1.0"?> |
---|
| 2 | <object name="portal_actions" meta_type="CMF Actions Tool"> |
---|
| 3 | <action-provider name="portal_subscriptions"> |
---|
| 4 | <action title="action_folder_notifications" action_id="folder_notifications" |
---|
| 5 | category="folder" |
---|
| 6 | condition_expr="python:hasattr(object, 'portal_type') and object.portal_type in portal.portal_subscriptions.getContainerPortalTypes()" |
---|
| 7 | url_expr="string:${object_url}/folder_notifications_form" visible="True"> |
---|
| 8 | <permission>Manage Subscriptions</permission> |
---|
| 9 | </action> |
---|
| 10 | <action title="action_my_subscriptions" action_id="my_subscriptions" |
---|
| 11 | category="user" |
---|
| 12 | condition_expr="python:not portal.portal_membership.isAnonymousUser()" |
---|
| 13 | url_expr="string:${portal_url}/manage_my_subscriptions_form" |
---|
| 14 | visible="True"> |
---|
| 15 | <permission>View My Subscriptions</permission> |
---|
| 16 | </action> |
---|
| 17 | <action title="action_notify_content" action_id="notify_content" |
---|
| 18 | category="object" condition_expr="python:object.portal_type != 'Portal'" |
---|
[221] | 19 | url_expr="string:${object_url}/content_notify_email_form" visible="False"> |
---|
[220] | 20 | <permission>Can Notify Content</permission> |
---|
| 21 | </action> |
---|
| 22 | <action title="action_folder_subscribe" action_id="folder_subscribe" |
---|
| 23 | category="folder" |
---|
| 24 | condition_expr="python:hasattr(object, 'portal_type') and object.portal_type in portal.portal_subscriptions.getSubscribablePortalTypes() and hasattr(object, portal.portal_subscriptions.getSubscriptionContainerId()) and getattr(object, portal.portal_subscriptions.getSubscriptionContainerId()).isSubscriptionAllowed()" |
---|
| 25 | url_expr="string:${object_url}/folder_subscribe_form" visible="False"> |
---|
| 26 | <permission>View</permission> |
---|
| 27 | </action> |
---|
| 28 | </action-provider> |
---|
| 29 | </object> |
---|
Note: See
TracBrowser for help on using the repository browser.