Skip to content

Commit

Permalink
add upgradestep to register new actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Timon Tschanz committed Jun 12, 2014
1 parent a30c841 commit 8985861
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ftw/contentpage/profiles/default/types/TextBlock.xml
Expand Up @@ -92,13 +92,13 @@
<action title="FAQ-View" action_id="sl-dummy-dummy-faq" category="sl-layouts"
condition_expr="" icon_expr=""
url_expr="string:${here/absolute_url}/block_control"
visible="True">
visible="False">
<permission value="Modify portal content"/>
</action>
<action title="Blockview" action_id="sl-dummy-dummy-block_view" category="sl-layouts"
condition_expr="" icon_expr=""
url_expr="string:${here/absolute_url}/block_control"
visible="True">
visible="False">
<permission value="Modify portal content"/>
</action>

Expand Down
8 changes: 8 additions & 0 deletions ftw/contentpage/upgrades/configure.zcml
Expand Up @@ -348,4 +348,12 @@
directory="profiles/1601"
/>

<upgrade-step:importProfile
title="add faqaction and update block action"
profile="ftw.contentpage:default"
source="1601"
destination="1602"
directory="profiles/1602"
/>

</configure>
18 changes: 18 additions & 0 deletions ftw/contentpage/upgrades/profiles/1602/types/TextBlock.xml
@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<object name="TextBlock"
meta_type="Factory-based Type Information with dynamic views"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
i18n:domain="ftw.contentpage">
<action title="FAQ-View" action_id="sl-dummy-dummy-faq" category="sl-layouts"
condition_expr="" icon_expr=""
url_expr="string:${here/absolute_url}/block_control"
visible="False">
<permission value="Modify portal content"/>
</action>
<action title="Blockview" action_id="sl-dummy-dummy-block_view" category="sl-layouts"
condition_expr="" icon_expr=""
url_expr="string:${here/absolute_url}/block_control"
visible="False">
<permission value="Modify portal content"/>
</action>
</object>

0 comments on commit 8985861

Please sign in to comment.