-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Store grid rendering state in ViewHelperVariableContainer #15
Comments
At the moment this is not possible because the RowWrapViewHelper is used in a different (the page rendering) RenderingContext than the ColumnWrapViewHelper (Content Rendering). The stored ViewHelper variables inside the page rendering context have to be passed to the content rendering context somehow. WIP Patch: |
With 4ebbce6 both Row and Column templates share the same rendering context (through the StandaloneView in the GridSystemTemplateService).
Diff:
|
Because the grid rendering was moved into a custom renderer class this is no longer necessary. The renderer class holds a state of the grid. |
At the moment the state of the grid rendering (containing full_width, row_begin, row_end, etc.) is stored in the
$_GLOBALS
array.Due to the fact, that both row and column rendering is implemented inside a ViewHelper the
\TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperVariableContainer
should be used to communicate between them and hold the state. It can be accessed through\TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface::getViewHelperVariableContainer
.The text was updated successfully, but these errors were encountered: