模板特定字段对我不起作用,选择模板时不会显示其他字段。我尝试重新启动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