TypoScript: Get page typeNum

raw

setup.typoscript

1
2
3
4
5
6
7
8
9
10
# only works on URLs with GET parameter ?type=2, not on /data.json PageTypeSuffix
page.10 = TEXT
page.10.data = GP:type
page.10.wrap = type value: |<br/>
 
# works on both URLs with GET parameter ?type=2 and on speaking URLs like /data.json PageTypeSuffix
page.11 = TEXT
page.11.data = TSFE:type
page.11.wrap = TSFE:type value: |
 
Christian Weiske Christian Weiske
owner

History