How to call content fragment in the universal editor and edit it.
Hi I have a requirement like on the EDS page when I will add the block it should allow me to browse the Content Fragment and I can edit it on EDS page itself.
Not I have created block as a "content-fragment"
path: blocks/content-fragment
Code :
{
"definitions": [
{
"title": "Content Fragment",
"id": "content-fragment",
"plugins": {
"xwalk": {
"page": {
"resourceType": "core/franklin/components/block/v1/block/item",
"template": {
"name": "Content Fragment",
"model": "content-fragment"
}
}
}
}
}
],
"models": [
{
"id": "content-fragment",
"fields": [
{
"component": "aem-content-fragment",
"name": "cf-picker",
"label": "Content Fragment Picker",
"valueType": "string",
"variationName": "contentFragmentVariation",
"validation": {
"rootPath": "/content/dam/"
}
}
]
}
],
"filters": [
]
}
it is not even showing me the block to author inside the section.
I have done the entries in filter, model and definition files too.
if anyone have implemented such functionality kindly share me the sample.
Thank You