Expand my Community achievements bar.

SOLVED

Bulk Editing for SEO

Avatar

Level 4

We have received an excel sheet with list of 500 LIVE URLs .

The ask is to hide them all from indexing (which is possible via SEO tab in page properties).

 

Please suggest an ideal way to do it  (since all these are random URLs from the sites and microsites), and updating 500 pages manually on a production instance is not possible.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @maheshp 

 

  1. To read an Excel you can use apache.poi APIs. Example: https://www.javatpoint.com/how-to-read-excel-file-in-java
  2. Snippet to execute a curl command from Java program can be referred from https://techrevel.blog/2018/01/19/curl-execution-from-java-program/
  3. Curl command to add a property to a page is 
     curl -u admin:admin -FnavRoot="true" http://localhost:4502/content/we-retail/us/en/jcr:content

Here navRoot is property name and true is the value.

 

I hope it helps.

 


Aanchal Sikka

View solution in original post

5 Replies

Avatar

Community Advisor

Hello @maheshp 

 

Please refer to the response on https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/update-aem-page-properties... 

 

One more option would be to use curl:

You can also write a script to read these links from excel, and execute curl command to append the property to each of these pages.


Aanchal Sikka

Avatar

Level 4

@aan1 : Can you please share more details on  "You can also write a script to read these links from excel, and execute curl command to append the property to each of these pages."

Avatar

Correct answer by
Community Advisor

Hello @maheshp 

 

  1. To read an Excel you can use apache.poi APIs. Example: https://www.javatpoint.com/how-to-read-excel-file-in-java
  2. Snippet to execute a curl command from Java program can be referred from https://techrevel.blog/2018/01/19/curl-execution-from-java-program/
  3. Curl command to add a property to a page is 
     curl -u admin:admin -FnavRoot="true" http://localhost:4502/content/we-retail/us/en/jcr:content

Here navRoot is property name and true is the value.

 

I hope it helps.

 


Aanchal Sikka

Avatar

Level 4

The list of pages is in an excel. Can you point more details on how will these options work with an excel.