how to integrate and edit content fragment with Edge delivery services xwalk project? | Community
Skip to main content
Level 2
August 26, 2024
Solved

how to integrate and edit content fragment with Edge delivery services xwalk project?

  • August 26, 2024
  • 3 replies
  • 1142 views

Hi, I am able to integrate content fragment with a normal project by instrumenting it and making it capable of editing in the universal editor, now I want to achieve the same with the xwalk project created using the boilerplate: https://github.com/adobe-rnd/aem-boilerplate-xwalk
I want to include content fragments and edit them using the universal editor itself.

currently, I am including it as : 
component-models.json 
{

"id": "calender-cf"

"fields": [

{

"component": "text",

"valueType": "string",

"name": "city",

"label": "enter the city",

},

{

"component": "text",

"valueType": "string",

"name": "state",

"label": "enter the state",

}

]

}

 

component-definition.json

{

"title": "calender-cf",

"id": "calender-cf",

"plugins": {

"aem":{

"page": {

"resourceType": "wknd/components/contentfragment"

}

}

}

}
please help me on how it can be achieved

Thank you

 

cc : @arunpatidar 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ShaileshBassi

Hi @rahulda2 

There is no direct way of editing the content fragment within the Universal Editor. 

And can you please add more details what is the exact use case of editing CF directly in CF, I am assuming you must be using the CF via graphQL in your X-Walk application. 

If you wish to use the editing features instead of Content Fragment and there is no use of omni-channel delivery, then in my option you should try the placeholder.(json/html) files which is the feature recommended to use with X-Walk.

 

Reference - https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/edge-delivery/document-authoring/placeholders

 

Thanks

3 replies

arunpatidar
Community Advisor
Community Advisor
August 27, 2024

Hi @rahulda2 
I'm not sure if this is possible right now, since you can't currently influence source generation in EDS. You might want to try adding a data attribute from the frontend, like you did with the regular project.

Arun Patidar
ShaileshBassi
Community Advisor
ShaileshBassiCommunity AdvisorAccepted solution
Community Advisor
November 27, 2024

Hi @rahulda2 

There is no direct way of editing the content fragment within the Universal Editor. 

And can you please add more details what is the exact use case of editing CF directly in CF, I am assuming you must be using the CF via graphQL in your X-Walk application. 

If you wish to use the editing features instead of Content Fragment and there is no use of omni-channel delivery, then in my option you should try the placeholder.(json/html) files which is the feature recommended to use with X-Walk.

 

Reference - https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/edge-delivery/document-authoring/placeholders

 

Thanks

daniel-strmecki
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
November 27, 2024

Hi @rahulda2,

not sure what type of frontend are you using but I did something similar using Next.js and AEM Pages (not Content Fragments) in this demo: https://www.youtube.com/watch?v=wJx4kLeGVuc

 

Hope this helps,

Daniel