Feature #37095
It should be possible to set a different template on a Fluid TemplateView inside an action
Status: | New | Start date: | 2012-05-11 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Christopher Hlubek | % Done: | 0% |
|
Category: | - | |||
Target version: | - | |||
Has patch: | No |
Description
Right now it's not possible to decide inside an action which view template should be rendered. Especially if the action itself doesn't have a template file the canRender()
method will always return FALSE
. Inside the initializeAction
or initializeView
method it's too early / too late to set a different template file and path.
The idea is to always return TRUE
in the canRender
method and return the NotFoundView
in the call to render
when no template source could be found.