Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Rewriting jcr:content to _jcr_content


Level 3

I have an attribute within a DIV tag thats needs to be rewritten (<div data-background="/content/abc/en/jcr:content/mainparsys/generic_banner/image.adapt.1663.high.jpg"  />). I tried all steps in the below articles but no success.


Please let me know if there is a way that I can do it. I know that for standard html tags it's done OOTB.

Thank you.



2 Replies


Level 10

Hi there,

Thanks for reaching out to Adobe Community.

Please go through the below community article and see if this helps:



Level 10

This use case is more of a general JavaScript task. There are quite a few online resources that talk about how to use JavaScript to dynamically modify DIV tags. For example:

The other links you referenced are about changing links within AEM. The one that Shekhar referenced talks about how to use the JCR API to get JCR content and modify nodes/props. But you need to simply modify DIV tags in content located in AEM.