Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Is there a way to rewrite urls within style html attribute using static reference rewriter?

Avatar

Level 1

Hi

Is there a way to rewrite the static urls within style html attribute using ACS AEM Commons Static Reference rewriter (detailed here)?

Sample code: <div style="background-image: url('/content/dam/*****.jpg');"/>

Thanks

2 Replies

Avatar

Level 10

The docs on that page seems to indicate you can do this task.

Avatar

Level 1

No, it didn't work. I tried adding div:style to the config, but it didn't rewrite the url within background-image.