我遇到了Bolt CMS的问题。当我添加一条新记录并保存时,我收到了这条消息:
"在Bolt \ Controller \ Backend \ Records :: edit"
中仍然禁用了反CSRF令牌功能所以我添加的内容没有显示在我的视图中。
以下是我的内容类型和我的观点,以表明我的代码是正确的(我认为):
pictures:
name: Pictures
singular_name: picture
fields:
title:
type: text
class: large
group: content
slug:
type: slug
uses: title
image:
type: image
text:
type: html
height: 300px
recordsperpage: 100
default_status: publish
sort: -datepublish

{% include '_header.twig' %}
<body class="home__bg">
<div class="container">
<section>
<div class="row">
<div class="col-md-10 col-md-offset-1 page__window">
<div class="col-md-12 page__window__in">
<h2>News</h2>
<div class="page__body">
{% setcontent adverts = 'pictures/latest/100' %}
{% for picture in pictures %}
{{ picture.image }}
{% endfor %}
</div><!-- /.marketing__pics -->
</div><!-- /.page__window__in -->
</div><!-- /.page__window -->
</div><!-- /.row -->
</section>
</div><!-- /.container -->
{% include '_footer.twig' %}
&#13;
谢谢你帮助我。
答案 0 :(得分:0)
Yes, it is currently disabled in the master (development) branch as we are working on a refactor. The warning is there to remind us that it's "not done yet"
When it is released as a stable version, it will be re-enaled, so please use a stable version now for any production work.