【发布时间】:2017-03-07 19:00:41
【问题描述】:
我目前正在构建一个使用 Bolt 作为 CMS 的网站。但是现在我正在努力将内容从一个块中取出。我的 contenttypes.yml:
blocks:
name: Blocks
singular_name: Block
fields:
title:
type: text
class: large
group: "Block"
slug:
type: slug
uses: [ title ]
text-one:
type: text
label: Tekst 1
group: content
text-two:
type: text
label: Tekst 2
group: content
text-three:
type: text
label: Tekst 3
group: content
text-four:
type: text
label: Tekst 4
group: content
text-five:
type: text
label: Tekst 5
group: content
text-six:
type: text
label: Tekst 6
group: content
我的树枝代码:
{% setcontent block_cta = "block/cta-nl" %}
我错过了什么吗?
提前致谢。
【问题讨论】:
-
我刚刚就您的问题发布了答案,希望对您有所帮助。但是顺便说一句`使用:[标题]`应该只是`使用:标题`
标签: bolt-cms