Php 如何导航到我的列表模板?
我在my contenttype.yml文件中定义了以下contenttype:Php 如何导航到我的列表模板?,php,bolt-cms,Php,Bolt Cms,我在my contenttype.yml文件中定义了以下contenttype: #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 recor
#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
我看到了我的记录模板,但如果我导航到http://localhost:8080/boltCMS/testimonials/1
,我收到一个错误
页面推荐/1
未找到
那么,如何导航到我的清单\模板
?
这是我可以在我的contenttypes.yml中设置和修改的内容吗
如果我将以下内容添加到我的commissional.twig文件中
{{ dump(records) }}
我在浏览器中看到一个空数组
谢谢。您是否检查过数据库中的“1”是否是您的推荐信中的正确slug