since ‎21-01-2018
‎13-02-2020
shishankm566651
Level 1
Content Fragment APIs - Create new fragment using custom model
Avatar

shishankm566651

shishankm566651
- Adobe Experience Manager
Hello All,We are trying the use Content Fragment APIs to create fragments.We have defined a new content fragment at location: /conf/sample/settings/dam/cfm/models/test-cfUsing API we have the following code: String template = "/libs/settings/dam/cfm/templates/simple/jcr:content";// default template Resource templateResource = getFragmentTemplateResource(request.getResourceResolver(), template); Resource parent = request.getResourceResolver().getResource("/content/dam/we-retail"); ContentFragment...

Views

619

Likes

0

Replies

3