83708[FEATURE] Provide PageInformation in PAGEVIEW cObject
Commit message
Review
-
Code review CR +2 Done
- Georg Ringer +2
- Lisa Kreitz +1
- Stefan Bürk +1
- Benni Mack +1
-
Verified V +2 Done
- Georg Ringer +2
- Lisa Kreitz +1
- Stefan Bürk +1
- Benni Mack +1
- core-ci +1 CI
Issues 1
Files 14
- typo3/sysext/core/Classes/Page/PageLayoutResolver.php2+9 −1
- typo3/sysext/core/Documentation/Changelog/13.1/Feature-103504-NewContentObjectPageView.rst4+20 −4
- typo3/sysext/frontend/Classes/ContentObject/PageViewContentObject.php+1 −2
- typo3/sysext/frontend/Classes/Page/PageInformation.php2+22 −0
- typo3/sysext/frontend/Classes/Page/PageInformationFactory.php+18 −0
- typo3/sysext/frontend/Tests/Functional/ContentObject/PageViewContentObjectTest.php2+53 −0
- typo3/sysext/frontend/Tests/Functional/Fixtures/Extensions/test_fluidpagerendering/Configuration/TypoScript/reserved_variablename_language.typoscriptnew+3 −0
- typo3/sysext/frontend/Tests/Functional/Fixtures/Extensions/test_fluidpagerendering/Configuration/TypoScript/reserved_variablename_page.typoscriptnew+3 −0
- typo3/sysext/frontend/Tests/Functional/Fixtures/Extensions/test_fluidpagerendering/Configuration/TypoScript/reserved_variablename_site.typoscriptnew+3 −0
- typo3/sysext/frontend/Tests/Functional/Fixtures/Extensions/test_fluidpagerendering/Resources/Private/Templates/Layouts/Default.html+1 −1
- typo3/sysext/frontend/Tests/Functional/Fixtures/Extensions/test_fluidpagerendering/Resources/Private/Templates/Pages/Standard.html+1 −0
- typo3/sysext/frontend/Tests/Functional/Fixtures/Extensions/test_fluidpagerendering/Resources/Private/templates_in_lowercase/layouts/Default.html+1 −1
- typo3/sysext/frontend/Tests/Functional/Fixtures/Extensions/test_fluidpagerendering/Resources/Private/templates_in_lowercase/pages/Standard.html+1 −0
- typo3/sysext/redirects/Tests/Unit/Service/RedirectServiceTest.php+3 −0
Review log 3747
Show 1822 earlier messages
-
Oli Bartsch uploaded patch set 1 04/08/24, 14:37
-
Andreas Kienast commented on patch set 1 04/08/24, 14:41
Not sure here whether this qualifies as a new feature. IMO [TASK] is sufficient. -
core-ci voted on patch set 1 V +1 04/08/24, 14:42 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/55569
-
Oliver Klee commented on patch set 1 04/08/24, 14:47
Can we cover this with a test? -
Andreas Kienast voted on patch set 1 CR +1 04/09/24, 07:51
-
Oli Bartsch commented on patch set 1 04/09/24, 10:58
Reply
What kind of test do you think about? -
Oliver Klee commented on patch set 1 04/09/24, 11:04
Reply
Maybe a functional test that renders a page view template that uses the new variable. -
Stefan Bürk uploaded patch set 2
CR +1V +104/09/24, 22:45 -
Stefan Bürk commented on patch set 2 04/09/24, 22:47
Reply
Added assertion for layout identifier to existing tests, hope that is fine for you @typo3-coding@oliverklee.de - additionally added test for the reserved variable name exception. -
Stefan Bürk uploaded patch set 3 04/09/24, 22:48
-
core-ci voted on patch set 2 V +1 04/09/24, 22:51 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/55643
-
core-ci voted on patch set 3 V +1 04/09/24, 22:54 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/55644
-
Stefan Bürk voted on patch set 3 CR +1 V +1 04/09/24, 22:54
-
Georg Ringer commented on patch set 3 CR -1 04/10/24, 06:02
Feature-103504-NewContentObjectPageView.rst:48can we leave some more information as most integrators just are used to the layout identifier and know *nothing* about the page layout objectFeature-103504-NewContentObjectPageView.rst:157as those are not many, can we please list all of those? -
Oliver Klee commented on patch set 3 V +1 04/10/24, 07:12
Reply
Looks good, thanks for providing the new tests! -
Andreas Kienast commented on patch set 3 04/10/24, 08:11
Feature-103504-NewContentObjectPageView.rst:157ReplyThose are literally listed starting at line 44. ;) -
Georg Ringer voted on patch set 3 CR 0 04/10/24, 08:18
-
Andreas Kienast commented on patch set 3 04/18/24, 07:20
PageViewContentObjectTest.php:92I assume you mean "stub"? -
Oli Bartsch uploaded patch set 4
CR +1V +104/18/24, 07:29 -
Oli Bartsch commented on patch set 4 04/18/24, 07:30
Feature-103504-NewContentObjectPageView.rst:48ReplyDonePageViewContentObjectTest.php:92ReplyDone -
core-ci voted on patch set 4 V +1 04/18/24, 07:34 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/56226
-
Andreas Kienast voted on patch set 4 CR +1 V +1 04/18/24, 07:35
-
Stefan Bürk voted on patch set 4 CR +1 V +1 04/18/24, 07:54
-
Oliver Klee voted on patch set 4 V +1 04/18/24, 09:45
-
Benni Mack commented on patch set 4 CR -1 04/18/24, 13:01
I suggest to add the pagelayout object to the pageinformation object and add that one to the view. this way we can utilize more things (e.g. rootline for breadcrumbs) and not polluting the main variables with separate options -
Oli Bartsch uploaded patch set 5
CR +1V +104/19/24, 07:27 -
Oli Bartsch uploaded patch set 6 04/19/24, 07:32
-
Oliver Klee voted on patch set 6 V +1 04/19/24, 07:33
-
core-ci voted on patch set 5 V -1 04/19/24, 07:45 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/56299
-
core-ci voted on patch set 6 V -1 04/19/24, 07:47 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/56304
-
Oli Bartsch uploaded patch set 7
V +104/19/24, 09:24 -
Oli Bartsch uploaded patch set 8 04/19/24, 09:31
-
core-ci voted on patch set 7 V +1 04/19/24, 09:34 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/56319
-
core-ci voted on patch set 8 V +1 04/19/24, 09:46 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/56323
-
Stefan Bürk commented on patch set 8 04/19/24, 09:57
PageLayoutResolver.php:62Would it not be enough to use a NullSite here instead and not doing a early return ? -
Oli Bartsch uploaded patch set 9
V +104/19/24, 10:05 -
Oli Bartsch commented on patch set 9 04/19/24, 10:05
PageLayoutResolver.php:62ReplyDone -
core-ci voted on patch set 9 V +1 04/19/24, 10:14 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/56326
-
Benni Mack commented on patch set 9 04/19/24, 22:35
This change means, that we now need to access {page.pageRecord.title} to get the page title of the current page. How about using {pageContext} as variable name? -
Stefan Bürk commented on patch set 9 04/20/24, 09:19
PageInformation.php:252Shouldn't the return type be nullable ? If page layout is not set, calling the getter will throw a return type exception/error, which may not be obvious in some usages. And without a `has()` method it could not be checked beforehand. -
Lisa Kreitz uploaded patch set 10
V +104/20/24, 19:46 -
Lisa Kreitz commented on patch set 10 CR +1 V +1 04/20/24, 19:49
Tested by creating a breadcrumb menu. Nice to have!PageInformation.php:252ReplyDone -
core-ci voted on patch set 10 V +1 04/20/24, 19:51 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/56393
-
Benni Mack voted on patch set 10 CR +1 V +1 04/20/24, 19:53
-
Stefan Bürk voted on patch set 10 CR +1 V +1 04/21/24, 01:54
-
Georg Ringer voted on patch set 10 CR +2 V +2 04/21/24, 19:05
-
Georg Ringer merged patch set 11 04/21/24, 19:05