Expand my Community achievements bar.

SOLVED

Images in RTE not loading via Dynamic Media Server

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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

Avatar

Community Advisor

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