我們正在研究使用Silverstripe CMS並希望能夠對模塊進行重新排序。Silverstripe中的靈活內容模塊
我們來自Wordpress設置,主要使用靈活的內容ACF字段。模塊(例如文本,標頭或視頻)需要能夠重新排序。
我們使用我們的CMS的作爲一個API,因此這些模塊是作爲一個部分,將頁面或交輸出:
[
{
"id": 10,
"title": "Post title",
"slug": "post_slug",
"path": "/post_slug",
"template": "campaign",
"published": "2017-05-25 06:09:36",
"image": null,
"seo": {
"title": "",
"description": "",
"image": {
},
},
"sections": [
{
"type": "masthead",
"Title": "",
"video": false,
"image": [
],
"showCta": false,
"cta": [
]
},
{
"type": "video_text",
"video_text": [
{
"type": "video",
"video_url": "https://www.youtube.com/watch?v=asdfa",
"video_length": "07:38",
"video_preview": false
},
{
"type": "text",
"title": "Video Title",
"content": "Video text content",
"call_to_action": false,
"cta": [
]
}
]
},
{
"type": "text",
"title": "Text Title",
"content": "",
"alignment": "centre",
"call_to_action": false,
"cta": {
"text": "CTA button",
"link_type": "internal_link",
"internal_link": "about",
"external_link": "",
"section_id": [
]
}
},
]
}
]
是否Silverstripe有它的處理模塊/自己的方式,我需要拋棄這個靈活的內容模塊方法?其他人如何處理Silverstripe中靈活的內容模塊?
SilverStripe有很多「內容塊」類型的模塊。看看sheadawson/silverstripe-blocks和dnadesign/silverstripe-elemental開始 –