Feature #36410

Allow templates to send arguments back to layout

Added by Florian Carstens over 9 years ago. Updated about 9 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
ViewHelpers
Target version:
-
Start date:
2012-04-21
Due date:
% Done:

0%

Estimated time:
Has patch:
No

Description

Layouts can differ a little on a website from page to page without affecting the whole layout. For example: Some pages contain a sidebar, others not. Or: Each page has it's own background which is set by a body or div container css class. I would like to set these kind of settings by sending arguments to the layout. That could e.g. be realised by extending the layout viewHelper:

  <f:layout name="Master" arguments="{cssClass: blueBackground}" />

Of course, I can do this in the controller. But I think this wouldn't be the right place according to the MVC design pattern.

Also available in: Atom PDF