Skip to content

Commit

Permalink
Merge pull request #35 from plone/event_newsitem_blocks
Browse files Browse the repository at this point in the history
Add blocks behavior on Event and NewsItem
  • Loading branch information
sneridagh authored Jan 20, 2022
2 parents 7e01029 + cbaa42f commit 1b77398
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ Changelog
- Remove ``plone.richtext`` behavior from Plone Site, Document, News Item, Events
[sneridagh]

- Add blocks behavior on Event and NewsItem
[nzambello]

- Add preview_image to Event
[nzambello]

3.1.0a9 (2022-01-15)
--------------------

Expand Down
2 changes: 1 addition & 1 deletion src/plone/volto/profiles/default/metadata.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<version>1015</version>
<version>1016</version>
<dependencies>
<dependency>profile-plone.restapi:blocks</dependency>
</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions src/plone/volto/profiles/default/types.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<object name="Plone Site" />
<object meta_type="Dexterity FTI" name="LRF" />
<object meta_type="Dexterity FTI" name="Document" />
<object meta_type="Dexterity FTI" name="Collection" />
<object meta_type="Dexterity FTI" name="News Item" />
<object meta_type="Dexterity FTI" name="Event" />
<object meta_type="Dexterity FTI" name="News Item" />
<object meta_type="Dexterity FTI" name="Collection" />
</object>
2 changes: 2 additions & 0 deletions src/plone/volto/profiles/default/types/Event.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@
<property name="klass">plone.volto.content.FolderishEvent</property>
<property name="behaviors" purge="false">
<element value="plone.constraintypes"/>
<element value="volto.blocks" />
<element value="volto.preview_image" />
</property>
</object>
1 change: 1 addition & 0 deletions src/plone/volto/profiles/default/types/News_Item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
<property name="klass">plone.volto.content.FolderishNewsItem</property>
<property name="behaviors" purge="false">
<element value="plone.constraintypes"/>
<element value="volto.blocks" />
</property>
</object>
8 changes: 8 additions & 0 deletions src/plone/volto/upgrades.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,12 @@
handler=".upgrades.remove_plone_richtext_behavior"
/>
</genericsetup:upgradeSteps>

<genericsetup:upgradeDepends
title="Add blocks behavior to Event and News Item"
profile="plone.volto:default"
source="1015"
destination="1016"
import_steps="typeinfo"
/>
</configure>

0 comments on commit 1b77398

Please sign in to comment.