Custom tab in folder share wizard | Community
Skip to main content
MikolajBuda
February 13, 2018

Custom tab in folder share wizard

  • February 13, 2018
  • 1 reply
  • 2474 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

smacdonald2008
February 13, 2018

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

smacdonald2008
February 13, 2018

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

December 2, 2024

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


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