Skip to content

Commit 67ca247

Browse files
committed
[BUGFIX] Fix Link partial for TYPO3 v14
1 parent cdc047d commit 67ca247

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Configuration/Sets/b13/page.tsconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ mod.web_layout.tt_content.preview.view {
33
partialRootPaths.0 = EXT:backendpreviews/Resources/Private/Partials
44
templateRootPaths.0 = EXT:backendpreviews/Resources/Private/Templates
55
}
6+
7+
[typo3.version < 14]
8+
mod.web_layout.tt_content.preview.view.partialRootPaths.1 = EXT:backendpreviews/Resources/Private/PartialsLegacy
9+
[END]
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<html
2+
xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
3+
data-namespace-typo3-fluid="true"
4+
>
5+
6+
<f:if condition="{link}">
7+
<div class="b_link">
8+
<span class="b_label">{f:translate(key: 'LLL:EXT:backendpreviews/Resources/Private/Language/locallang_db.xlf:link.label')}: </span>{linklabel}
9+
({f:if(condition: '{f:uri.typolink(parameter: link, language: language)}', then: '{f:uri.typolink(parameter: link.url, language: language)}', else: link)})
10+
<f:if condition="{config}">
11+
[{f:translate(key: 'LLL:EXT:backendpreviews/Resources/Private/Language/locallang_db.xlf:link.config')}: {config}]
12+
</f:if>
13+
</div>
14+
</f:if>
15+
16+
</html>

0 commit comments

Comments
 (0)