Add jcr:title to folders and their sub folders | Community
Skip to main content
August 28, 2023
Solved

Add jcr:title to folders and their sub folders

  • August 28, 2023
  • 2 replies
  • 697 views

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

 

@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  

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by aanchal-sikka

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

 

 

2 replies

aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
August 29, 2023

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