Skip to content

Commit

Permalink
Merge pull request #46 from collective/sandrarum_pac_compatibility
Browse files Browse the repository at this point in the history
Added dexterity folder to classes implementing IGallery
  • Loading branch information
sandrarum committed Oct 28, 2015
2 parents c4e4eab + b84e426 commit 047c8d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions collective/plonetruegallery/configure.zcml
Expand Up @@ -45,6 +45,11 @@
zcml:condition="installed plone.app.collection">
<implements interface=".interfaces.IGallery" />
</class>
<class
zcml:condition="installed plone.app.contenttypes"
class="plone.app.contenttypes.content.Folder">
<implements interface=".interfaces.IGallery" />
</class>

<utility
provides="zope.schema.interfaces.IVocabularyFactory"
Expand Down

2 comments on commit 047c8d3

@espenmn
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a good idea ?
It is very simple to add the gallery behaviour in the dexterity control panel, (and maybe someone wants to make another 'gallery-folder' content type,

Maybe we should upgrade the 'how to' instead

@sandrarum
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, due to the use of Dexterity as standard in plone5 , Dexterity types should be supported by the package. So, I merged this change to the main-branch.

Please sign in to comment.