From 67ca247779135bd918429165740c266630748e98 Mon Sep 17 00:00:00 2001 From: Benni Mack Date: Wed, 14 Jan 2026 20:14:01 +0100 Subject: [PATCH 1/3] [BUGFIX] Fix Link partial for TYPO3 v14 --- Configuration/Sets/b13/page.tsconfig | 4 ++++ Resources/Private/PartialsLegacy/Link.html | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 Resources/Private/PartialsLegacy/Link.html diff --git a/Configuration/Sets/b13/page.tsconfig b/Configuration/Sets/b13/page.tsconfig index 58cfce4..244007a 100644 --- a/Configuration/Sets/b13/page.tsconfig +++ b/Configuration/Sets/b13/page.tsconfig @@ -3,3 +3,7 @@ mod.web_layout.tt_content.preview.view { partialRootPaths.0 = EXT:backendpreviews/Resources/Private/Partials templateRootPaths.0 = EXT:backendpreviews/Resources/Private/Templates } + +[typo3.version < 14] + mod.web_layout.tt_content.preview.view.partialRootPaths.1 = EXT:backendpreviews/Resources/Private/PartialsLegacy +[END] diff --git a/Resources/Private/PartialsLegacy/Link.html b/Resources/Private/PartialsLegacy/Link.html new file mode 100644 index 0000000..9c3109b --- /dev/null +++ b/Resources/Private/PartialsLegacy/Link.html @@ -0,0 +1,16 @@ + + + + + + + From ed61c50b07be71e78a1fe509ec35d66d94e04880 Mon Sep 17 00:00:00 2001 From: Benni Mack Date: Wed, 14 Jan 2026 21:59:28 +0100 Subject: [PATCH 2/3] [BUGFIX] Ensure to allow DI for DatabaseRowService --- Configuration/Services.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Configuration/Services.yaml b/Configuration/Services.yaml index 1040552..56552b1 100644 --- a/Configuration/Services.yaml +++ b/Configuration/Services.yaml @@ -8,6 +8,8 @@ services: resource: '../Classes/*' B13\Backendpreviews\Hooks\BackendPreviewRenderer: public: true + B13\Backendpreviews\Service\DatabaseRowService: + public: true B13\Backendpreviews\Listener\PageContentPreviewRendering: tags: - name: event.listener From 11ce790f65d607460a2225ea927a93d3fa579415 Mon Sep 17 00:00:00 2001 From: Benni Mack Date: Mon, 19 Jan 2026 19:56:51 +0100 Subject: [PATCH 3/3] [BUGFIX] Fix partials --- Resources/Private/Partials/Defaults/CTypeLabel.html | 7 +++++-- Resources/Private/Partials/Defaults/Header.html | 3 ++- Resources/Private/Partials/Defaults/Subheader.html | 3 ++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Resources/Private/Partials/Defaults/CTypeLabel.html b/Resources/Private/Partials/Defaults/CTypeLabel.html index 7e8b253..e72d8c8 100644 --- a/Resources/Private/Partials/Defaults/CTypeLabel.html +++ b/Resources/Private/Partials/Defaults/CTypeLabel.html @@ -10,9 +10,12 @@ {CType-label} + + {f:translate(key: 'LLL:EXT:backendpreviews/Resources/Private/Language/locallang_db.xlf:CType.label')}: {record.CType -> f:format.case(mode: 'capital')} + - {f:translate(key: 'LLL:EXT:backendpreviews/Resources/Private/Language/locallang_db.xlf:CType.label')}: {CType -> f:format.case(mode: 'capital')} + {f:translate(key: 'LLL:EXT:backendpreviews/Resources/Private/Language/locallang_db.xlf:CType.label')}: {CType -> f:format.case(mode: 'capital')} - \ No newline at end of file + diff --git a/Resources/Private/Partials/Defaults/Header.html b/Resources/Private/Partials/Defaults/Header.html index e1ec93a..8b2f19a 100644 --- a/Resources/Private/Partials/Defaults/Header.html +++ b/Resources/Private/Partials/Defaults/Header.html @@ -4,5 +4,6 @@ > {header}
+{record.header}
- \ No newline at end of file + diff --git a/Resources/Private/Partials/Defaults/Subheader.html b/Resources/Private/Partials/Defaults/Subheader.html index d99ea86..f2d9e78 100644 --- a/Resources/Private/Partials/Defaults/Subheader.html +++ b/Resources/Private/Partials/Defaults/Subheader.html @@ -3,6 +3,7 @@ data-namespace-typo3-fluid="true" > +{record.subheader}
{subheader}
- \ No newline at end of file +