[FEATURE] Optimized integration of Page Rendering via Fluid
This change adds a new cObject "PAGEVIEW" which has a much simpler usage than "FLUIDTEMPLATE", because it is meant to render a full page like this: page = PAGE page.10 = PAGEVIEW page.10.paths.100 = EXT:site_extension/Resources/Private/Templates Nothing else is needed by default, as a) the layoutRootPaths are resolved to be meant to be under "Templates/Layouts" or "Templates/layouts" b) the partialRootPaths are resolved to be meant to be under "Templates/Partials" or "Templates/partials" automatically are added. The name of the template is resolved from the Page Layout (Backend Layout) identifier, so add a "Templates/Pages/Mypage.html" if there is a backend layout with "mypage" added. In addition, the reserved variables * site (Site object) * language (Site Language object) * page (Page object) * settings (Page / TypoScript Settings) are injected automatically, so the View can work with this information directly. template folders for "pages", "layouts" and "partials" can start with an upper-case or lower-case in order to ensure maximum compatibility and avoid common mistakes. Why do we do this? We've found that FLUIDTEMPLATE is often used for page rendering, but lacks specific usages for pages to be worked directly without the understanding of Fluid internals and TypoScript code. This functionality will be further adapted to be used for further rendering of custom Content Elements and Content Blocks which will follow in subsequent steps. For this reason this API is considered experimental until TYPO3 v13 LTS. Resolves: #103504 Releases: main Change-Id: Ieb2b665945ad671fe7e7c195b3201dbc0dbd7076 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83626 Tested-by:Benjamin Kott <benjamin.kott@outlook.com> Tested-by:
Oliver Bartsch <bo@cedev.de> Tested-by:
Benni Mack <benni@typo3.org> Tested-by:
core-ci <typo3@b13.com> Reviewed-by:
Benjamin Kott <benjamin.kott@outlook.com> Reviewed-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- typo3/sysext/core/Classes/Page/PageLayoutResolver.php 9 additions, 0 deletionstypo3/sysext/core/Classes/Page/PageLayoutResolver.php
- typo3/sysext/core/Documentation/Changelog/13.1/Feature-103504-NewContentObjectPageView.rst 153 additions, 0 deletions...hangelog/13.1/Feature-103504-NewContentObjectPageView.rst
- typo3/sysext/frontend/Classes/ContentObject/PageViewContentObject.php 194 additions, 0 deletions.../frontend/Classes/ContentObject/PageViewContentObject.php
- typo3/sysext/frontend/Configuration/Services.yaml 5 additions, 0 deletionstypo3/sysext/frontend/Configuration/Services.yaml
- typo3/sysext/frontend/Tests/Functional/ContentObject/Fixtures/FluidPage/pages.csv 4 additions, 0 deletions...sts/Functional/ContentObject/Fixtures/FluidPage/pages.csv
- typo3/sysext/frontend/Tests/Functional/ContentObject/PageViewContentObjectTest.php 82 additions, 0 deletions...ts/Functional/ContentObject/PageViewContentObjectTest.php
- typo3/sysext/frontend/Tests/Functional/Fixtures/Extensions/test_fluidpagerendering/Configuration/TypoScript/plain.typoscript 9 additions, 0 deletions...idpagerendering/Configuration/TypoScript/plain.typoscript
- typo3/sysext/frontend/Tests/Functional/Fixtures/Extensions/test_fluidpagerendering/Configuration/page.tsconfig 63 additions, 0 deletions...sions/test_fluidpagerendering/Configuration/page.tsconfig
- typo3/sysext/frontend/Tests/Functional/Fixtures/Extensions/test_fluidpagerendering/Resources/Private/Language/fr.page.xlf 12 additions, 0 deletions...fluidpagerendering/Resources/Private/Language/fr.page.xlf
- typo3/sysext/frontend/Tests/Functional/Fixtures/Extensions/test_fluidpagerendering/Resources/Private/Language/page.xlf 11 additions, 0 deletions...st_fluidpagerendering/Resources/Private/Language/page.xlf
- typo3/sysext/frontend/Tests/Functional/Fixtures/Extensions/test_fluidpagerendering/Resources/Private/Templates/Layouts/Default.html 9 additions, 0 deletions...endering/Resources/Private/Templates/Layouts/Default.html
- typo3/sysext/frontend/Tests/Functional/Fixtures/Extensions/test_fluidpagerendering/Resources/Private/Templates/Pages/Standard.html 5 additions, 0 deletions...rendering/Resources/Private/Templates/Pages/Standard.html
- typo3/sysext/frontend/Tests/Functional/Fixtures/Extensions/test_fluidpagerendering/Resources/Private/templates_in_lowercase/layouts/Default.html 9 additions, 0 deletions...urces/Private/templates_in_lowercase/layouts/Default.html
- typo3/sysext/frontend/Tests/Functional/Fixtures/Extensions/test_fluidpagerendering/Resources/Private/templates_in_lowercase/pages/Standard.html 5 additions, 0 deletions...ources/Private/templates_in_lowercase/pages/Standard.html
- typo3/sysext/frontend/Tests/Functional/Fixtures/Extensions/test_fluidpagerendering/composer.json 14 additions, 0 deletions...Fixtures/Extensions/test_fluidpagerendering/composer.json
- typo3/sysext/frontend/Tests/Functional/Fixtures/Extensions/test_fluidpagerendering/ext_emconf.php 18 additions, 0 deletions...ixtures/Extensions/test_fluidpagerendering/ext_emconf.php
Please register or sign in to comment