Expand my Community achievements bar.

Bulk updating headings component in AEM

Avatar

Level 1

in a page I need to find after title first heading . there is any way to get the report and update first heading only for all the pages . i am trying to get the report in crx/de by using heading type. But i get all heading in the page. 

 

Can anyone help me how to fix issue.

3 Replies

Avatar

Level 4

Can you provide a screenshot of your content hierarchy which you are trying to update? 

Avatar

Community Advisor

HI @aneesshaik ,

Can you elaborate more on the ask, what you need? It seems like you want to update page title property, for that you can write a custom class which will update the node property.

Sample code that you can follow:

Node n = session.getNode("/content/project/home"); 
n.setProperty("PropertyName","Sample"); 

 

-Tarun

Avatar

Community Advisor

@aneesshaik 

 

How are you trying to update the heading of all the pages?

One option might be to use Groovy scripts. It will help you have better control, to traverse to the first title and update it. If the first title has the same path relative to the page, it would be even easier


Aanchal Sikka