Let me clear the ambiguity based on your queries:Query 1: Can you compare your own content fragment to /content/dam/we-retail/en/experiences/48-hours-of-wilderness/48-hours-of-wilderness? Do you have the property "contentfragment = true" set?Answer : As mentioned above the requirement is to create ...
After setting the class "com.adobe.cq.dam.cfm.impl" to debug, there is no message getting printed. (I hope that is what you meant as mentioned in below screenshot)Also I have validate that our content fragment model has a "model" subnode available.
Yes that's correct, the "tpl" is null and the questions which needs clarity are as below:1) Resource templateOrModelRsc = resolver.getResource("/conf/Test-Configuration/settings/dam/cfm/models/content-fragment-model");Here the templateOrModelRsc is resource for content fragment model and not the c...
NPE is coming on :ContentFragment newFragment = tpl.createFragment(resolver.getResource(parent), "cwb-content-fragment-test","CWB POC Content Fragment Test.");
Hi Team,There is a requirement where we need to create the AEM fragment programatically in AEM6.4.2 version.Based on the document (Customizing and Extending Content Fragments ) , we are using the below code to create Content FragmentReferred Code :Resource templateOrModelRsc = resourceResolver.getRe...