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

Document Link Picker for ChannelInfo doesn't allow to pick from /content/documents/administration

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Invalid
    • None
    • 5.5.0
    • None
    • None

    Description

      When a channel info has a @JcrPath parameter like this, it's impossible to pick a document from /content/documents/administration/document1 because the picker always start showing from /content/documents/myhippoproject/ and it doesn't change the content when clicking on the parent folder (/content/documents/) in the breadcrumb either.

      @FieldGroupList({
              @FieldGroup(
                      titleKey = "mychannel",
                      value = { "mydefaultchannelpixelvars" }
                      )
              })
      public interface MyChannelInfo extends ChannelInfo {
      
          @Parameter(name = "mydefaultchannelpixelvars")
          @JcrPath(
                  pickerConfiguration = "cms-pickers/documents-only",
                  pickerSelectableNodeTypes = { "mypixelvariablesdocument" },
                  pickerInitialPath = "/content/documents"
                  )
          String getMyPixelVariables();
      
      }
      

      Note that in real projects we keep many non-translated documents such as resource bundles in /content/documents/administration/ folder because those should be maintained differently from the translated channel root folders such as /content/documents/myhippoproject/ or /content/documents/myhippoproject-fr/.

      If it's not possible to pick a document from a non-translated folder like /content/documents/administration/, it put a big limitation in projects.

      Attachments

        Activity

          People

            Unassigned Unassigned
            wko Woonsan Ko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: