Images in RTE not loading via Dynamic Media Server | Community
Skip to main content
Level 2
September 19, 2023
Solved

Images in RTE not loading via Dynamic Media Server

  • September 19, 2023
  • 2 replies
  • 881 views

We are working on AEM and dynamic media integration and is facing one issue with RTE components . The images are not loading from scene7 server and continue to load from DAM. Its a custom component and not the OOTB dynamic media component.

 

Any thoughts on how can we use DM capabilities for the images loaded via RTE

 

-

Nithin

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 EstebanBustamante

Hi, 

 

The simple solution is to use either the image core component or the dynamic media component for displaying images instead of embedding them via the RTE. For example, instead of having one RTE with one paragraph, one image, and another paragraph, you would opt for a structure consisting of one RTE (for the paragraph), one Image component (for the image), and another RTE (for the last paragraph). Hopefully, this approach makes sense.

 

Another alternative to consider is manually creating an RTE plugin to construct your custom "URL" that utilizes the dynamic media pattern. Here is an example of how to write a plugin: https://medium.com/globant/build-a-custom-rte-plugin-with-chatgpt-for-aem-4e373487a6fe 

 

Hope this helps

2 replies

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
September 19, 2023

Hi, 

 

The simple solution is to use either the image core component or the dynamic media component for displaying images instead of embedding them via the RTE. For example, instead of having one RTE with one paragraph, one image, and another paragraph, you would opt for a structure consisting of one RTE (for the paragraph), one Image component (for the image), and another RTE (for the last paragraph). Hopefully, this approach makes sense.

 

Another alternative to consider is manually creating an RTE plugin to construct your custom "URL" that utilizes the dynamic media pattern. Here is an example of how to write a plugin: https://medium.com/globant/build-a-custom-rte-plugin-with-chatgpt-for-aem-4e373487a6fe 

 

Hope this helps

Esteban Bustamante
arunpatidar
Community Advisor
Community Advisor
September 20, 2023

Hi @nithinthomas 

As @estebanbustamante mentioned, you can create a plugin or parse the RTE content while rendering to construct your custom "URL" that utilizes the dynamic media pattern. 

Arun Patidar