CQ5 Externalizer and Mod rewritter - automatic author/publish absolute links for setting the Image src. | Community
Skip to main content
Level 5
February 17, 2016
Solved

CQ5 Externalizer and Mod rewritter - automatic author/publish absolute links for setting the Image src.

  • February 17, 2016
  • 4 replies
  • 1315 views

Hi guys,

How to Rewrite Adobe CQ Image src attribute from relative to obsolete. either by using the link Externalizer or by Mod re-writter. This is urgent.

Thanks in Advance.

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 Jitendra_S_Toma

Got it. I think, The Externalizer service is the right choice to change image src from relative to absolute path. And, you might have to implement externalize service in many components (wherever you have an image).

If you don't want to do this, another option could be Sling Rewriter. Which takes a whole html as input and produce expected html. For more details, go through below docs.

https://helpx.adobe.com/experience-manager/using/creating-link-rewrite.html

--

Jitendra

4 replies

Jitendra_S_Toma
Level 10
February 17, 2016

 Is there any specific reason to use Externalizer or Mod re-writer for the image path?.  

Do you want to digital assets to point to some other server?. If Yes, Externalizer could be a good option. 

Jitendra

dragon2A wrote...

Hi guys,

How to Rewrite Adobe CQ Image src attribute from relative to obsolete. either by using the link Externalizer or by Mod re-writter. This is urgent.

Thanks in Advance.

 

 

dragon2AAuthor
Level 5
February 17, 2016

My Need is to display the Image src from relative to obsolete path. We are going to use DAM only.  

How can I change Image src from relative to obsolete path .

Jitendra_S_Toma
Jitendra_S_TomaAccepted solution
Level 10
February 17, 2016

Got it. I think, The Externalizer service is the right choice to change image src from relative to absolute path. And, you might have to implement externalize service in many components (wherever you have an image).

If you don't want to do this, another option could be Sling Rewriter. Which takes a whole html as input and produce expected html. For more details, go through below docs.

https://helpx.adobe.com/experience-manager/using/creating-link-rewrite.html

--

Jitendra

Kunal_Gaba_
February 17, 2016