forked from FriendsOfTYPO3/tt_address
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
name: friendsoftypo3/tt-address | ||
label: Addresses (Extbase/Fluid) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} | ||
} | ||
} | ||
} |