Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道这是一个非常基本的问题,但我在文档中找不到答案:是否可以在 Bolt 后端仅显示已发布的页面?我看到filter右边有一个条目,但我找不到按属性过滤页面的语法。
filter
如果不破解后端,我认为这是不可能的。
但是您可以在只有登录用户才能访问的前端页面上轻松执行此操作: {% if user.username %} {# looping through your published pages with a link to the edit in the backend based on the pages' ID #} {% endif %}
{% if user.username %} {# looping through your published pages with a link to the edit in the backend based on the pages' ID #} {% endif %}