Feature #50132
Feature #49988: Backport ApplicationContext from Flow
TypoScript: Application Context condition
Status: | Resolved | Start date: | 2013-07-17 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | - | % Done: | 100% |
|
Category: | TypoScript | Spent time: | - | |
Target version: | 6.2.0 | |||
PHP Version: | Sprint Focus: | |||
Complexity: |
Description
Extracted from issue #39441
Add a context condition to TypoScript:
[applicationContext = Development] # do things differently [end]
Related issues
Associated revisions
[FEATURE] Add TypoScript condition for ApplicationContext
The following condition is available in TypoScript and TSconfig
for testing the ApplicationContext:
[applicationContext = value1, value2, ...]
One of the given values matching the applicationContext.
Wildcards + and * are allowed, as well as regular expressions
delimited with /PREG_PATTERN/
Examples:
[applicationContext = Development/Debugging, Development/Profiling]
# matching exactly "Development/Debugging" or "Development/Profiling"
[global]
[applicationContext = Production*]
# matching any applicationContext with a rootContext of "Production",
# for example "Production/Live" or "Production/Staging"
[global]
[applicationContext = /^Production\/Staging\/Server\d+$/]
# matching "Production/Staging/Server1", "Production/Staging/Server2"
# and so on
[global]
Resolves: #50132
Documentation: #52701
Releases: 6.2
Change-Id: I4f0f69ca4208d36d8eb8966ec9ef034f6b703b34
Reviewed-on: https://review.typo3.org/22412
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Markus Klein
Tested-by: Markus Klein
History
#1 Updated by Gerrit Code Review about 2 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22412
#2 Updated by Steffen Müller about 2 years ago
Added a WIP changeset, which provides three new conditions:
1. [context = value1, value2, ...]
Example: [context = Development/Debugging, Development/Profiling]
2. [rootContext = value1, value2, ...]
Example: [rootContext = Production]
3. [contextMatch = /PREG_PATTERN/]
Example: [contextMatch = /^Production/Staging/Server\d+$/]
#3 Updated by Gerrit Code Review about 2 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22412
#4 Updated by Gerrit Code Review about 2 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22412
#5 Updated by Gerrit Code Review about 2 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22412
#6 Updated by Gerrit Code Review about 2 years ago
Patch set 5 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22412
#7 Updated by Gerrit Code Review about 2 years ago
Patch set 6 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22412
#8 Updated by Gerrit Code Review almost 2 years ago
Patch set 7 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22412
#9 Updated by Ernesto Baschny almost 2 years ago
- Target version set to 6.2.0
#10 Updated by Ernesto Baschny almost 2 years ago
- Subject changed from Context condition to TypoScript: Application Context condition
#11 Updated by Gerrit Code Review almost 2 years ago
Patch set 8 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22412
#12 Updated by Gerrit Code Review almost 2 years ago
Patch set 9 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22412
#13 Updated by Gerrit Code Review almost 2 years ago
Patch set 10 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22412
#14 Updated by Gerrit Code Review almost 2 years ago
Patch set 11 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22412
#15 Updated by Gerrit Code Review almost 2 years ago
Patch set 12 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22412
#16 Updated by Steffen Müller almost 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 113655bef7072557d05eb40b1c2bdb105a26f44c.