我在我的contenttype.yml文件中定义了以下内容类型:
#Testimonials
testimonials:
name: Testimonials
singular_name: Testimonial
fields:
name:
type: text
class: large
position:
type: text
body:
type: textarea
height: 150px
listing_template: testimonials.twig
record_template: testimonial.twig现在,在我的浏览器中,如果我导航到http://localhost:8080/boltCMS/testimonials,我会看到我的record_template,但是如果我导航到http://localhost:8080/boltCMS/testimonials/1,我会得到一个错误。
找不到页面testimonials/1。
那么我如何导航到我的listing_template呢?这是我可以在contenttypes.yml中设置和修改的东西吗?
如果我将以下内容添加到testimonials.twig文件中,
{{ dump(records) }}我在浏览器中看到一个空数组。
谢谢。
发布于 2016-01-17 20:33:01
您是否检查了“%1”是数据库中您的一份推荐信的正确弹头?
https://stackoverflow.com/questions/34735826
复制相似问题