Expand my Community achievements bar.

SOLVED

Added id attribute in AEM Editor for container is not displayed in rendered HTML

Avatar

Level 1

Hi,

 

I'm trying to add an "id" attribute to the container component but I do not see that in the HTML that is rendered when "View as published". Also, it shows style="undefined" on the container. Below are the screenshots for the same.

manasabojja_1-1662500441146.pngmanasabojja_2-1662500467608.png

 

 

I'm using AEM 6.5.13 and core components 2.20.6 and running it as AEM SPA(react). Can someone assist if something is missing or worng?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @manasabojja 

please check you have added a name (i.g. idField) for the id field in the dialog xml and call it in sightly in this way "${properties.idField}" where you need it.

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hello @manasabojja 

please check you have added a name (i.g. idField) for the id field in the dialog xml and call it in sightly in this way "${properties.idField}" where you need it.

Avatar

Level 1

How do I add this fild to dialog if I'm using the container component that comes with the AEM/React project build  I'm facing the same issue.

Avatar

Level 3

yes, I'm facing similar issue to @jgomesh , can you explain please?