This is an example of raw content blocks in Cloudpress. Below is a link to an embedded entry. We must add a correct JSON document that will be exported to Contentful:
@@begin_raw_content
{
"nodeType": "embedded-entry-block",
"data": {
"target": {
"sys": {
"id": "4iS76T8auAE513QzmxSFKo",
"type": "Link",
"linkType": "Entry"
}
}
},
"content": []
}
@@end_raw_content
If we want to include more than one element, we must ensure that they are wrapped an a JSON array. For example, here is a link to the same entry as above, as well as a link to an embedded asset:
@@begin_raw_content
[
{
"nodeType": "embedded-entry-block",
"data": {
"target": {
"sys": {
"id": "4iS76T8auAE513QzmxSFKo",
"type": "Link",
"linkType": "Entry"
}
}
},
"content": []
},
{
"nodeType": "embedded-asset-block",
"data": {
"target": {
"sys": {
"id": "2tpbU0f0yCqyR6fXiPVCX6",
"type": "Link",
"linkType": "Asset"
}
}
},
"content": []
}
]
@@end_raw_content