Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

Add jcr:title to folders and their sub folders

Avatar

Level 1

Hi, 

I want to add titles to folders that are already present in dam.

There are many folders and sub folders and I want to add jcr:title to only folders and not to the files.

Here I want to update all folders under /content/dam/Testing (A,A1,A2,B,C,D) and /content/dam/Testing2(AB,BC)..so on

Asritha_0-1693288375364.png

 

@arunpatidar  @lukasz-m  @kautuk_sahni 

@SivakumarKanoori @Fanindra_Surat @Jagadeesh_Prakash @krati_garg @iamnjain @somen-sarkar @bajancherry @sunil_kumar_ @shelly-goel @Ganthimathi_R @davidjgonzalezzzz @krishna_garikapati  @Shubham_borole @milind_bachani @krishna_sai @manjunathdj  

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @Asritha 

 

If its an AMS of on-premise instance, you can use groovy script to add metadata.

 

  1. Details on installing Groovy console : https://github.com/icfnext/aem-groovy-console
  2. Sample code for "Modify a property in a complete site hierarchy as per business logic. " is on https://hashimkhan.in/aem-adobecq5-code-templates/groovy-script/

If for some reason, you are not allowed to install Groovy console on servers.

- Consider creating packages with appropriate filters 

- Install packages on local

- Add metadata using groovy script

- rebuild the package and install on server.

 

The package Filters need to be configured, so that they do not override images. Use exclude/include patterns to achieve the same

 

 


Aanchal Sikka

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hello @Asritha 

 

If its an AMS of on-premise instance, you can use groovy script to add metadata.

 

  1. Details on installing Groovy console : https://github.com/icfnext/aem-groovy-console
  2. Sample code for "Modify a property in a complete site hierarchy as per business logic. " is on https://hashimkhan.in/aem-adobecq5-code-templates/groovy-script/

If for some reason, you are not allowed to install Groovy console on servers.

- Consider creating packages with appropriate filters 

- Install packages on local

- Add metadata using groovy script

- rebuild the package and install on server.

 

The package Filters need to be configured, so that they do not override images. Use exclude/include patterns to achieve the same

 

 


Aanchal Sikka