AEM dialog using sling:resourceType include on the same component dialog multiple times
Hi there,
I have a very similar issue that was posted on StackOverflow (see link below), but unfortunately, I was not able to find a solution yet.
https://stackoverflow.com/questions/68459743/aem-dialog-using-slingresourcetype-include-on-the-same-component-dialog-twice
How I can use the following in the same dialog multiple times?
<ctaLinks
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/include"
path="/apps/my_project/components/base/_ctagroup/content/items/ctaLinks"/>
Assume i have 2 Tabs, and I want to be able to use this generic / global ctaLinks in both tabs.
But when I use (the code snippet above) multiple times in dialog .content.xml,
cta button is duplicated, so Tab 1 and Tab 2 dialog config in new component is overriding each other's value.
So whenever I change the cta value in Tab 1, it also changes the cta value in Tab 2.
Your help is greatly appreciated.