Expand my Community achievements bar.

Custom tab in folder share wizard

Avatar

Level 2

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?

5 Replies

Avatar

Level 10

There is no documentation for adding custom tabs to DAM asset folder settings.

Avatar

Level 10

I talked with our AEM support team about this - they said - "Log a case and we will file a security bug "

Avatar

Level 2

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

Avatar

Level 1

@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.

Avatar

Level 1

if someone can provide this info, i'm also searching it