Project

General

Profile

Actions

Task #89993

closed

Add documentation about difference between ViewHelpers be.container and be.pageRenderer

Added by Sybille Peters about 4 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Documentation
Target version:
-
Start date:
2019-12-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

The description for both is pretty much the same.

The examples look very similar too. I honestly don't know what be.pageRenderer is for in comparison to be.container.


be.pageRenderer
ViewHelper which allows you to create extbase based modules in the style of TYPO3 default modules.

Examples
All options:

<f:be.pageRenderer pageTitle="foo" 
    includeCssFiles="{0: '{f:uri.resource(path:\'Css/Styles.css\')}'}" 
    includeJsFiles="{0: '{f:uri.resource(path:\'JavaScript/Library1.js\')}', 1: '{f:uri.resource(path:\'JavaScript/Library2.js\')}'}" 
    addJsInlineLabels="{0: 'label1', 1: 'label2'}" />
Custom CSS file EXT:your_extension/Resources/Public/Css/styles.css and JavaScript files EXT:your_extension/Resources/Public/JavaScript/Library1.js and EXT:your_extension/Resources/Public/JavaScript/Library2.js will be loaded, plus some inline labels for usage in JS code.
be.container
ViewHelper which allows you to create extbase based modules in the style of TYPO3 default modules.

Examples
Simple:

<f:be.container>your module content</f:be.container>
“your module content” wrapped with proper head & body tags. Default backend CSS styles and JavaScript will be included.

All options:

<f:be.container pageTitle="foo" 
    includeCssFiles="{0: '{f:uri.resource(path:\'Css/Styles.css\')}'}" 
    includeJsFiles="{0: '{f:uri.resource(path:\'JavaScript/Library1.js\')}', 1: '{f:uri.resource(path:\'JavaScript/Library2.js\')}'}" 
    addJsInlineLabels="{0: 'label1', 1: 'label2'}" 
>
    your module content
</f:be.container>
“your module content” wrapped with proper head & body tags. Custom CSS file EXT:your_extension/Resources/Public/Css/styles.css and JavaScript files EXT:your_extension/Resources/Public/JavaScript/Library1.js and EXT:your_extension/Resources/Public/JavaScript/Library2.js will be loaded, plus some inline labels for usage in JS code.

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #94225: Deprecate f:be.container ViewHelperClosed2021-05-28

Actions
Actions #1

Updated by Christian Kuhn over 2 years ago

  • Related to Task #94225: Deprecate f:be.container ViewHelper added
Actions #2

Updated by Christian Kuhn over 2 years ago

  • Status changed from New to Closed

You're totally right, Sybille. I stumbled upon the same with #94225 and deprecated the container view helper since it does not add any significant value over the page renderer VH. I'll close the issue since we resolved it with #94225

Actions

Also available in: Atom PDF