Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-15720

Remove Unnecessary Mixin on Folder Query

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • 14.7.18, 15.4.0
    • None
    • None
    • None
    • Orion
    • BrXM Backlog
    • Undetermined

    Description

      The "hippostd-queries.yaml" file from hippo-repository-worflow contains the following YAML:

      /new-folder:
        jcr:primaryType: hippostd:templatequery
        jcr:mixinTypes: ['hipposys:implementation']
        hippostd:icon: addfolder_ico
        hippostd:modify: [./_name, $name]
        hipposys:classname: org.hippoecm.repository.impl.query.DirectPath
        jcr:language: xpath
        jcr:statement: /jcr:root/hippo:configuration/hippo:queries/hippo:templates/new-folder/hippostd:templates/node()
        /hippostd:templates:
          jcr:primaryType: hippostd:templates
          /hippostd:folder:
            jcr:primaryType: hippostd:folder
            jcr:mixinTypes: ['mix:versionable']
            jcr:uuid: 36414d02-4f0f-475b-8443-dd6f450a6475
            hippostd:foldertype: [new-document, new-folder] 

      The mixin 'mix:versionable' should not be on a folder as folders are not versioned. This mixin should be removed from the query template. 

      Attachments

        Issue Links

          Activity

            People

              orion-team Orion Team
              npavao Nicholas Pavao
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: