Highlighted

Custom tab in folder share wizard

MikolajBuda

13-02-2018

I'm about to add a custom tab for DAM asset folder settings. Right now it works and saves in CRX values by using custom PostOperation handler class. How to fetch these values from CRX when loading DAM folder settings (of course without /libs/granite/ui/components/coral/foundation/form/password which is wiped out)? I found foldershare.js which performs some GET calls and figured out that I need to add my custom tab to: /libs/dam/gui/content/assets/foldersharewizard/jcr:content/body/content/items/foldersettings/items/settings/items/right/items/tab5/items/tabcontent/items/passwordProtection.html - this is my custom tab:

{

   "jcr:primaryType":"nt:unstructured",

   "jcr:title":"Title",

   "id":"custom-properties",

   "class":"custom-properties",

   "sling:resourceType":"granite/ui/components/foundation/container",

   "items":{

      "jcr:primaryType":"nt:unstructured",

      "tabcontent":{

         "jcr:primaryType":"nt:unstructured",

         "sling:resourceType":"granite/ui/components/foundation/container",

         "granite:rendercondition":{

            "jcr:primaryType":"nt:unstructured",

            "feature":"com.adobe.dam.asset.processingprofile.feature.flag",

            "sling:resourceType":"granite/ui/components/foundation/renderconditions/feature"

         },

         "items":{

            "jcr:primaryType":"nt:unstructured",

            "passwordProtection":{

               "jcr:primaryType":"nt:unstructured",

               "jcr:title":"Password protection",

               "sling:resourceType":"/libs/granite/ui/components/foundation/form/fieldset",

               "items":{

                  "jcr:primaryType":"nt:unstructured",

                  "password":{

                     "jcr:primaryType":"nt:unstructured",

                     "name":"./password",

                     "fieldLabel":"Password",

                     "sling:resourceType":"/libs/granite/ui/components/coral/foundation/form/password"

                  },

                  "loginPagePath":{

                     "jcr:primaryType":"nt:unstructured",

                     "rootPath":"/content/websites/",

                     "name":"./loginPagePath",

                     "fieldLabel":"Login page path",

                     "sling:resourceType":"/libs/granite/ui/components/foundation/form/pathbrowser",

                     "fieldDescription":"Path page with login component"

                  },

                  "operation":{

                     "jcr:primaryType":"nt:unstructured",

                     "name":":operation",

                     "value":"custom.dam.share.folder",

                     "sling:resourceType":"granite/ui/components/foundation/form/hidden"

                  }

               }

            }

         }

      }

   }

}

So now i have url for making GET request to render tab. However data is still not fetched. Does anyone have some documentation or instructions how to do that?

Replies

Highlighted
Highlighted

MikolajBuda

14-02-2018

I managed to add this by creating proper .content.xml under \apps\src\main\content\jcr_root\apps\dam\gui\content\assets\foldersharewizard

Highlighted

Alex_Lockhart

20-02-2020

@MikolajBuda How did you get the property to save? I have also overlaid that path in order to add a custom tab to DAM folder properties however the dialog fields within the tab are not being saved to the CRX upon saving the dialog.