Clone Album View

Hello.
I want to create a new dynamic view to change the style of the album view, without losing the original view. In the picture below add a new item "Album view 2" with different style using another template. It's possible? How could I do it?


Thanks!

Try this, the default album view live in plone.app.contenttypes :

<configure
  xmlns="http://namespaces.zope.org/zope"
  xmlns:browser="http://namespaces.zope.org/browser"
  xmlns:z3c="http://namespaces.zope.org/z3c"
  xmlns:zcml="http://namespaces.zope.org/zcml"
  i18n_domain="plone">

  <include package="plone.app.contentmenu" />

  <!-- VIEWS FOR PLONE SITE ROOT -->
  <browser:pages
    for="Products.CMFPlone.interfaces.IPloneSiteRoot"
    class="plone.app.contenttypes.browser.folder.FolderView"
    layer="your-layer-interface"
    permission="zope2.View">
    <browser:page
      name="album_view2"
      template="path-to-your-template"
      menu="plone_displayviews"
      title="Album view 2" />
  </browser:pages>

  <!-- VIEWS FOR FOLDERS -->
  <browser:pages
    for="plone.dexterity.interfaces.IDexterityContainer"
    layer="your-layer-interface"
    class="plone.app.contenttypes.browser.folder.FolderView"
    permission="zope2.View">
    <browser:page
      name="album_view2"
      template="path-to-your-template"
      menu="plone_displayviews"
      title="Album view 2" />
  </browser:pages>

  <!-- VIEWS FOR ANYTHING WITH THE COLLECTION BEHAVIOR. -->
  <browser:pages
    for="plone.app.contenttypes.behaviors.collection.ISyndicatableCollection"
    class="plone.app.contenttypes.browser.collection.CollectionView"
    layer="your-layer-interface"
    permission="zope2.View">
    <browser:page
      name="album_view2"
      template="path-to-your-template"
      menu="plone_displayviews"
      title="Album view 2" />
  </browser:pages>

</configure>
1 Like

Plone Foundation Code of Conduct