@@ -23,12 +23,6 @@ system:
2323 template : " eZDemoBundle:full:article.html.twig"
2424 match :
2525 Identifier\ContentType : [article]
26- # There are two ways to add extra information to your response using a custom controller
27- blog :
28- # Fully customized, handling everything yourself
29- controller : " eZDemoBundle:Demo:listBlogPosts"
30- match :
31- Identifier\ContentType : [blog]
3226 blog_post :
3327 # Enriched controller, only adding extra parameters
3428 controller : " eZDemoBundle:Demo:showBlogPost"
@@ -80,11 +74,6 @@ system:
8074 template : " eZDemoBundle:line:article.html.twig"
8175 match :
8276 Identifier\ContentType : [article]
83- blog_post :
84- controller : " eZDemoBundle:Demo:showBlogPost"
85- template : " eZDemoBundle:line:blog_post.html.twig"
86- match :
87- Identifier\ContentType : [blog_post]
8877 place :
8978 template : " eZDemoBundle:line:place.html.twig"
9079 match :
@@ -107,6 +96,19 @@ system:
10796 Identifier\ContentType : [video]
10897
10998 content_view :
99+ full :
100+ # Fully customized, handling everything yourself
101+ blog :
102+ match :
103+ Identifier\ContentType : [blog]
104+ controller : ' ez_query:contentAction'
105+ template : ' eZDemoBundle:full:blog.html.twig'
106+ params :
107+ query : ' DemoBundle:BlogPosts'
108+ queryParameters :
109+ blogPathString : @=location.pathString
110+ variable : blog_posts_list
111+ enablePager : true
110112 embed :
111113 image :
112114 template : " eZDemoBundle:embed:image.html.twig"
@@ -117,6 +119,12 @@ system:
117119 template : " eZDemoBundle:relation:image.html.twig"
118120 match :
119121 Identifier\ContentType : [image]
122+ line :
123+ blog_post :
124+ controller : " eZDemoBundle:Demo:showBlogPost"
125+ template : " eZDemoBundle:line:blog_post.html.twig"
126+ match :
127+ Identifier\ContentType : [blog_post]
120128
121129 field_templates :
122130 - {template: "eZDemoBundle::content_fields.html.twig", priority: 10}
0 commit comments