Dynamic media | Community
Skip to main content
Keerthi0555
November 23, 2023
Solved

Dynamic media

  • November 23, 2023
  • 1 reply
  • 516 views

Hi Team,

In dynamic media ootb component it has data-config attribute why do we need config Url I'm trying to understand this attribute but couldn't find.

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

Most of the time, the "data-*" attributes follow a common pattern, signifying that the information contained in these attributes will be utilized by a JavaScript snippet. This holds true for the dynamicMedia component, where the data loaded under "data-config" is subsequently employed by the Scene7 scripts. If I am not mistaken, all the information is consolidated into this attribute from various sources, which is why you may need to set the config URL as well.

 

Hope this helps.

1 reply

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
November 23, 2023

Most of the time, the "data-*" attributes follow a common pattern, signifying that the information contained in these attributes will be utilized by a JavaScript snippet. This holds true for the dynamicMedia component, where the data loaded under "data-config" is subsequently employed by the Scene7 scripts. If I am not mistaken, all the information is consolidated into this attribute from various sources, which is why you may need to set the config URL as well.

 

Hope this helps.

Esteban Bustamante