【发布时间】:2017-06-22 23:12:07
【问题描述】:
我们正在考虑使用 Silverstripe CMS,并希望能够拥有可以重新排序的模块。
我们来自 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 开始
标签: content-management-system silverstripe