Custom tab in folder share wizard

Avatar

Avatar
Validate 1
Level 2
MikolajBuda
Level 2

Like

1 like

Total Posts

12 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 2
MikolajBuda
Level 2

Like

1 like

Total Posts

12 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
MikolajBuda
Level 2

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

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

13-02-2018

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

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

13-02-2018

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

Avatar

Avatar
Validate 1
Level 2
MikolajBuda
Level 2

Like

1 like

Total Posts

12 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 2
MikolajBuda
Level 2

Like

1 like

Total Posts

12 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
MikolajBuda
Level 2

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

Avatar

Avatar
Give Back
Level 1
Alex_Lockhart
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Give Back
View profile

Avatar
Give Back
Level 1
Alex_Lockhart
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Give Back
View profile
Alex_Lockhart
Level 1

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.