Hi, I am facing an issue where my custom component is showing me the changes that I have made in the dialog. I have to refresh it manually after editing it to reflect those changes. Is there a way to fix this?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @Ankit_Gangishetti ,
You can try adding cq:listners under cq:editConfig in your component and it should solve the issue. After edit is the property which would refresh the component after edit.
Hi,
Please try using the cq:EditConfig with the property to "refresh" the component after changes are applied: https://helpx.adobe.com/uk/experience-manager/kb/RefreshPageWhenModifyDialog.html
Something like this, or using the "REFRESH_SELF" depending on what you are tyring to accomplish:
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="cq:EditConfig">
<cq:listeners
jcr:primaryType="cq:EditListenersConfig"
afteredit="REFRESH_PAGE"/>
</jcr:root>
You can learn more about this config here: http://www.sgaemsolutions.com/2019/01/ootbcustom-cqlisteners-in-cqeditconfig.html
Hope it helps
Hi @Ankit_Gangishetti ,
You can try adding cq:listners under cq:editConfig in your component and it should solve the issue. After edit is the property which would refresh the component after edit.
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies