Skip to content

Commit

Permalink
[FEATURE] Introduce Site Sets
Browse files Browse the repository at this point in the history
As a site set can only be used in TYPO3 v13
we can use the new constant syntax
{$plugin.tx_ttaddress.view.templateRootPath ?? $tt_address.templateRootPath} here.
The TypoScript will not be included by v12 installations.

resolves FriendsOfTYPO3#570
  • Loading branch information
linawolf committed Aug 27, 2024
1 parent 07e0780 commit edd7781
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Configuration/Sets/Address/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: friendsoftypo3/tt-address
label: Addresses (Extbase/Fluid)
16 changes: 16 additions & 0 deletions Configuration/Sets/Address/settings.definitions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
settings:
tt_address.templateRootPath:
label: 'Path to template root (FE)'
description: ''
type: string
default: 'EXT:tt_address/Resources/Private/Templates/'
tt_address.partialRootPath:
label: 'Path to template partials (FE)'
description: ''
type: string
default: 'EXT:tt_address/Resources/Private/Partials/'
tt_address.layoutRootPath:
label: 'Path to template layouts (FE)'
description: ''
type: string
default: 'EXT:tt_address/Resources/Private/Layouts/'
14 changes: 14 additions & 0 deletions Configuration/Sets/Address/setup.typoscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@import 'EXT:tt_addressConfiguration/TypoScript/setup.typoscript'
plugin.tx_ttaddress {
view {
templateRootPaths {
1 = {$plugin.tx_ttaddress.view.templateRootPath ?? $tt_address.templateRootPath}
}
partialRootPaths {
1 = {$plugin.tx_ttaddress.view.partialRootPath ?? $tt_address.partialRootPath}
}
layoutRootPaths {
1 = {$plugin.tx_ttaddress.view.layoutRootPath ?? $tt_address.layoutRootPath}
}
}
}

0 comments on commit edd7781

Please sign in to comment.