Hi all,
We are working on custom SPA component which is supposed to take the given content fragment & use its field on page.
In sites custom component we achieved this simply by using below snippet in html & it works fine. cfPath is content fragment path selected in component dialog's pathbrowser field.
<sly data-sly-test.cfPath="${'{0}/jcr:content/data/master' @ format=properties.cfPath}"
data-sly-use.cf="${cfPath}">
<p>${cf.fieldFromCF}</p>
<sly>
So, can anyone please help me to achieve the above in SPA react?
Any hint on this would be helpful.
Thanks,
sesmic