模板特定字段,BoltCMS

时间:2015-06-07 09:51:33

标签: bolt-cms

模板特定字段对我不起作用,选择模板时不会显示其他字段。我尝试重新启动nginx,检查数据库并清除缓存,但这没有用。

config.yml(复制粘贴时缩进更改):

templatefields:
tochten.twig:
    section_1_heading:
        type: text
    section_1_body:
        type: html
    section_2_heading:
        type: text
    section_2_body:
        type: html

这是我使用的模板特定字段的内容类型(缩进,在复制粘贴时更改):

paginas:
name: Paginas
singular_name: Pagina
fields:
    title:
        type: text
        class: large
    heading:
        type: text
        class: large
    slug:
        type: slug
        uses: title
    image:
        type: image
        upload: paginas
        extensions: [ jpg ]
    body:
        type: html
    template:
        type: templateselect
        filter: '*.twig'
default_status: publish
sort: -datepublish

编辑:BoltCMS版本2.2.1

1 个答案:

答案 0 :(得分:0)

你有最新版本的博尔特吗?它仅在2.2 onward上受支持。

相关问题