我正在用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" %}
我这么想吗?
在此先感谢。
我刚在你的问题上发布了答案,希望它有帮助。但呃顺便说一句''使用:[标题]''只是'使用:标题' –