-
Notifications
You must be signed in to change notification settings - Fork 76
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 #570
- Loading branch information
Showing
13 changed files
with
113 additions
and
3 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
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 |
---|---|---|
|
@@ -9,3 +9,4 @@ | |
/.styleci.yml export-ignore | ||
/.travis.yml export-ignore | ||
/.php_cs export-ignore | ||
/Makefile export-ignore |
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} | ||
} | ||
} | ||
} |
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
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,50 @@ | ||
:navigation-title: Site sets | ||
.. include:: /Includes.rst.txt | ||
|
||
.. _configuration-extension-sets: | ||
|
||
==================================== | ||
Site sets provided by EXT:tt_address | ||
==================================== | ||
|
||
.. versionchanged:: tt_address 9.1.0 / TYPO3 v13.3 | ||
Site sets were added. | ||
|
||
The extension :composer:`friendsoftypo3/tt-address` offers a site set | ||
called "Addresses (Extbase/Fluid)" and has the key `friendsoftypo3/tt-address`. | ||
|
||
.. _configuration-extension-sets-usage: | ||
|
||
Using the site set "Addresses (Extbase/Fluid)" | ||
============================================== | ||
|
||
You can include this :ref:`Site set <t3coreapi:site-sets>` in your site configuration: | ||
|
||
* Got to :guilabel:`Site Management > Sites`. | ||
* Edit your site configuration. | ||
* In :guilabel:`General > Sets for this Site` add the site set called | ||
"Addresses (Extbase/Fluid)". | ||
|
||
This changes the YAML file representing your site configuration as follows: | ||
|
||
.. literalinclude:: _siteconfig.diff | ||
:caption: config/sites/my_site/config.yaml (diff) | ||
|
||
If you are using a :ref:`custom site package extension <t3sitepackage:start>` | ||
providing a custom Set you can include `friendsoftypo3/tt-address` into your | ||
site packages set: | ||
|
||
.. literalinclude:: _setconfig.yaml | ||
:caption: EXT:my_sitepackage/Configuration/Sets/MySitepackage/config.yaml | ||
|
||
.. _configuration-extension-sets-settings: | ||
|
||
Settings for site set "Addresses (Extbase/Fluid)" | ||
================================================= | ||
|
||
The following settings are available: | ||
|
||
.. typo3:site-set-settings:: PROJECT:/Configuration/Sets/Address/settings.definitions.yaml | ||
:name: address-settings | ||
:type: | ||
:Label: Settings of the site set of EXT:tt_address |
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,5 @@ | ||
name: myvendor/my-sitepackage | ||
label: My Sitepackage | ||
dependencies: | ||
- my-vendor/my-other-set | ||
- friendsoftypo3/tt-address |
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,6 @@ | ||
base: 'https://example.org/' | ||
dependencies: | ||
- typo3/fluid-styled-content-css | ||
+ - friendsoftypo3/tt-address | ||
languages: | ||
- |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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,10 @@ | ||
.PHONY: help | ||
help: ## Displays this list of targets with descriptions | ||
@echo "The following commands are available:\n" | ||
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
.PHONY: docs | ||
docs: ## Generate projects docs (from "Documentation" directory) | ||
mkdir -p Documentation-GENERATED-temp | ||
|
||
docker run --rm --pull always -v "$(shell pwd)":/project -t ghcr.io/typo3-documentation/render-guides:latest --config=Documentation |