eZ Community » Forums » eZ Platform » Custom controller an view
expandshrink

Custom controller an view

Custom controller an view

Thursday 21 September 2017 8:56:39 am

Hello, I created a custom controller like this:

ezpublish:   
system:       
default:           
location_view:               
test:                   
image_slideshow:                       
controller: AppBundle:Slideshow:imageViewSlideshow                       
match:
Identifier\ContentType: [image]

 

I call it this way : 

{{ render(controller('ez_content:viewLocation', {       
'locationId': location.locationId,       
         'viewType': 'test'   
})) }}

 

I get the following error : 

 

An exception has been thrown during the rendering of a template ("No view template was set to render the view with the 'test' view type. Check your view configuration."blunk.gif Emoticon.

 

 

if i use the full, embed or inline views everything works.

The documentation indicates that we can use our own views, should we declare them ?

Thank you

Modified on Thursday 21 September 2017 9:10:22 am by patrice brun

No reply yet!

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from