Commit 84a0c05b authored by Thomas Löffler's avatar Thomas Löffler

Refactoring TypoScript

* Change file extensions to .tsconfig and .typoscript
* Remove obsolete imports (done in template record) -> should be changed in a separate task
* Remove config for realurl
* Move TS integration from ext_tables.php to Overrides file
* Move code to ext_typoscript_* to include code without need of integration
parent 2bb173c4
Pipeline #8378 passed with stages
in 3 minutes and 15 seconds
<?php
// Add static TypoScript files
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
't3org_layout',
'Configuration/TypoScript/SecurityAdvisories/',
'News settings for security advisories'
);
# Include required static setup
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:solr/Configuration/TypoScript/Solr/setup.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:solr/Configuration/TypoScript/Examples/IndexQueueNews/setup.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:solr/Configuration/TypoScript/Examples/IndexQueueNewsContentElements/setup.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:news/Configuration/TypoScript/setup.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:rx_shariff/Configuration/TypoScript/PluginOnly/setup.ts">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:sf_event_mgt/Configuration/TypoScript/setup.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:t3o_membership/Configuration/TypoScript/setup.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:typo3_roadmap/Configuration/TypoScript/setup.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:certifications/Configuration/TypoScript/setup.txt">
<INCLUDE_TYPOSCRIPT: source="DIR:EXT:t3org_layout/Configuration/TypoScript/Ext/">
# Let table allow all classes
lib.parseFunc_RTE.externalBlocks.table.stdWrap.HTMLparser.tags.table.fixAttrib.class >
# Set active item in typo3 universe header
page.10.settings.platformKey = community
# check if news detail view
[globalVar = GP:tx_news_pi1|news > 0]
# remove all meta tags from cs_seo
page.headerData.654 >
# disable title tag
page.headerData.654.5 >
# remove meta description
page.headerData.654.7 >
# remove canonical
page.headerData.654.10 >
# remove robots
page.headerData.654.15 >
# remove open graph tags
page.headerData.654.30 >
# remove twitter card summary
page.headerData.654.35 >
# remove twitter card tags
page.headerData.654.40 >
config.noPageTitle = 2
temp.newsTitle = RECORDS
temp.newsTitle {
dontCheckPid = 1
tables = tx_news_domain_model_news
source.data = GP:tx_news_pi1|news
source.intval = 1
conf.tx_news_domain_model_news = TEXT
conf.tx_news_domain_model_news {
field = title
htmlSpecialChars = 1
}
wrap = <title>|</title>
}
page.headerData.1 >
page.headerData.1 < temp.newsTitle
[end]
config.pageTitleSeparator =
# check if news detail view
[globalVar = GP:tx_news_pi1|news > 0]
# remove all meta tags from cs_seo
page.headerData.654 >
# disable title tag
page.headerData.654.5 >
# remove meta description
page.headerData.654.7 >
# remove canonical
page.headerData.654.10 >
# remove robots
page.headerData.654.15 >
# remove open graph tags
page.headerData.654.30 >
# remove twitter card summary
page.headerData.654.35 >
# remove twitter card tags
page.headerData.654.40 >
config.noPageTitle = 2
temp.newsTitle = RECORDS
temp.newsTitle {
dontCheckPid = 1
tables = tx_news_domain_model_news
source.data = GP:tx_news_pi1|news
source.intval = 1
conf.tx_news_domain_model_news = TEXT
conf.tx_news_domain_model_news {
field = title
htmlSpecialChars = 1
}
wrap = <title>|</title>
}
page.headerData.1 >
page.headerData.1 < temp.newsTitle
[end]
config.pageTitleSeparator =
plugin.tx_news {
view {
templateRootPaths >
templateRootPaths {
0 = EXT:news/Resources/Private/Templates/
1 = EXT:t3olayout/Resources/Private/Templates/News/
}
partialRootPaths >
partialRootPaths {
0 = EXT:news/Resources/Private/Partials/
1 = EXT:t3olayout/Resources/Private/Partials/
2 = EXT:t3olayout/Resources/Private/Partials/News/
3 = EXT:t3org_layout/Resources/Private/Partials/News/
}
layoutRootPaths >
layoutRootPaths {
0 = EXT:news/Resources/Private/Layouts/
1 = EXT:t3olayout/Resources/Private/Layouts/News/
}
widget.GeorgRinger\News\ViewHelpers\Widget\PaginateViewHelper.templateRootPath = EXT:t3olayout/Resources/Private/Templates/News/ViewHelpers/
}
settings {
list {
media {
image {
width = 480
height = 270c
}
dummyImage = typo3conf/ext/t3org_layout/Resources/Public/Images/News_Dummy.svg
}
paginate{
insertAbove = 0
}
}
defaultDetailPid = 185
listPid = 38
}
}
config.recordLinks.tx_news {
typolink {
parameter = 185
additionalParams.data = field:uid
additionalParams.wrap = &tx_news_pi1[news]=|&tx_news_pi1[controller]=News&tx_news_pi1[action]=detail
useCacheHash = 1
}
}
# Add link to RSS feed in head
page.headerData.100 = TEXT
page.headerData.100.value = <link rel="alternate" type="application/rss+xml" title="Official typo3.org news" href="/rss" />
# RSS feed with the latest 30 news (default)
[globalVar = TSFE:type = 100]
config {
disableAllHeaderCode = 1
xhtml_cleaning = none
admPanel = 0
debug = 0
disablePrefixComment = 1
metaCharset = utf-8
additionalHeaders.5.header = Content-Type:application/rss+xml;charset=utf-8
additionalHeaders.5.replace = 1
absRefPrefix = {$plugin.tx_news.rss.channel.link}
linkVars = L
}
pageNewsRSS = PAGE
pageNewsRSS {
typeNum = 100
10 = USER
10 {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
extensionName = News
vendorName = GeorgRinger
pluginName = Pi1
switchableControllerActions {
News {
1 = list
}
}
settings < plugin.tx_news.settings
settings {
limit = 30
detailPid = 185
startingpoint = 179
recursive = 1
format = xml
list.rss.channel {
title = Official typo3.org news
link = {$plugin.tx_news.rss.channel.link}
}
}
view < plugin.tx_news.view
view {
templateRootPaths {
2 = EXT:t3org_layout/Resources/Private/Templates/News/
}
}
}
}
[global]
# Add link to RSS Security feed in head
page.headerData.101 = TEXT
page.headerData.101.value = <link rel="alternate" type="application/rss+xml" title="Official typo3.org news" href="/rss-security" />
# RSS feed with the latest 30 news (security advisories)
[globalVar = TSFE:type = 101]
config {
disableAllHeaderCode = 1
xhtml_cleaning = none
admPanel = 0
debug = 0
disablePrefixComment = 1
metaCharset = utf-8
additionalHeaders.5.header = Content-Type:application/rss+xml;charset=utf-8
additionalHeaders.5.replace = 1
absRefPrefix = {$plugin.tx_news.rss.channel.link}
linkVars = L
}
pageSecurityRSS = PAGE
pageSecurityRSS {
typeNum = 101
10 = USER
10 {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
extensionName = News
vendorName = GeorgRinger
pluginName = Pi1
switchableControllerActions {
News {
1 = list
}
}
settings < plugin.tx_news.settings
settings {
limit = 30
detailPid = 523
startingpoint = 231
recursive = 2
format = xml
list.rss.channel {
title = Official typo3.org security advisories
link = https://typo3.org/security
}
}
view < plugin.tx_news.view
view {
templateRootPaths {
2 = EXT:t3org_layout/Resources/Private/Templates/News/Security/
}
}
}
}
[global]
# RSS feed with all news elements, used by discourse integration
[globalVar = TSFE:type = 155]
config {
disableAllHeaderCode = 1
xhtml_cleaning = none
admPanel = 0
debug = 0
disablePrefixComment = 1
metaCharset = utf-8
additionalHeaders.5.header = Content-Type:application/rss+xml;charset=utf-8
additionalHeaders.5.replace = 1
absRefPrefix = {$plugin.tx_news.rss.channel.link}
}
pageNewsRSS = PAGE
pageNewsRSS {
typeNum = 155
10 = USER
10 {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
extensionName = News
vendorName = GeorgRinger
pluginName = Pi1
switchableControllerActions {
News {
1 = list
}
}
settings < plugin.tx_news.settings
settings {
detailPid = 185
startingpoint = 179
recursive = 1
format = xml
list.rss.channel {
title = typo3.org news
link = {$plugin.tx_news.rss.channel.link}
}
}
view < plugin.tx_news.view
view {
templateRootPaths {
2 = EXT:t3org_layout/Resources/Private/Templates/News/
}
}
}
}
[global]
plugin.tx_news {
view {
templateRootPaths >
templateRootPaths {
0 = EXT:news/Resources/Private/Templates/
1 = EXT:t3olayout/Resources/Private/Templates/News/
}
partialRootPaths >
partialRootPaths {
0 = EXT:news/Resources/Private/Partials/
1 = EXT:t3olayout/Resources/Private/Partials/
2 = EXT:t3olayout/Resources/Private/Partials/News/
3 = EXT:t3org_layout/Resources/Private/Partials/News/
}
layoutRootPaths >
layoutRootPaths {
0 = EXT:news/Resources/Private/Layouts/
1 = EXT:t3olayout/Resources/Private/Layouts/News/
}
widget.GeorgRinger\News\ViewHelpers\Widget\PaginateViewHelper.templateRootPath = EXT:t3olayout/Resources/Private/Templates/News/ViewHelpers/
}
settings {
list {
media {
image {
width = 480
height = 270c
}
dummyImage = typo3conf/ext/t3org_layout/Resources/Public/Images/News_Dummy.svg
}
paginate {
insertAbove = 0
}
}
defaultDetailPid = 185
listPid = 38
}
}
config.recordLinks.tx_news {
typolink {
parameter = 185
additionalParams.data = field:uid
additionalParams.wrap = &tx_news_pi1[news]=|&tx_news_pi1[controller]=News&tx_news_pi1[action]=detail
useCacheHash = 1
}
}
# Add link to RSS feed in head
page.headerData.100 = TEXT
page.headerData.100.value = <link rel="alternate" type="application/rss+xml" title="Official typo3.org news" href="/rss" />
# RSS feed with the latest 30 news (default)
[globalVar = TSFE:type = 100]
config {
disableAllHeaderCode = 1
xhtml_cleaning = none
admPanel = 0
debug = 0
disablePrefixComment = 1
metaCharset = utf-8
additionalHeaders.5.header = Content-Type:application/rss+xml;charset=utf-8
additionalHeaders.5.replace = 1
absRefPrefix = {$plugin.tx_news.rss.channel.link}
linkVars = L
}
pageNewsRSS = PAGE
pageNewsRSS {
typeNum = 100
10 = USER
10 {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
extensionName = News
vendorName = GeorgRinger
pluginName = Pi1
switchableControllerActions {
News {
1 = list
}
}
settings < plugin.tx_news.settings
settings {
limit = 30
detailPid = 185
startingpoint = 179
recursive = 1
format = xml
list.rss.channel {
title = Official typo3.org news
link = {$plugin.tx_news.rss.channel.link}
}
}
view < plugin.tx_news.view
view {
templateRootPaths {
2 = EXT:t3org_layout/Resources/Private/Templates/News/
}
}
}
}
[global]
# Add link to RSS Security feed in head
page.headerData.101 = TEXT
page.headerData.101.value = <link rel="alternate" type="application/rss+xml" title="Official typo3.org news" href="/rss-security" />
# RSS feed with the latest 30 news (security advisories)
[globalVar = TSFE:type = 101]
config {
disableAllHeaderCode = 1
xhtml_cleaning = none
admPanel = 0
debug = 0
disablePrefixComment = 1
metaCharset = utf-8
additionalHeaders.5.header = Content-Type:application/rss+xml;charset=utf-8
additionalHeaders.5.replace = 1
absRefPrefix = {$plugin.tx_news.rss.channel.link}
linkVars = L
}
pageSecurityRSS = PAGE
pageSecurityRSS {
typeNum = 101
10 = USER
10 {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
extensionName = News
vendorName = GeorgRinger
pluginName = Pi1
switchableControllerActions {
News {
1 = list
}
}
settings < plugin.tx_news.settings
settings {
limit = 30
detailPid = 523
startingpoint = 231
recursive = 2
format = xml
list.rss.channel {
title = Official typo3.org security advisories
link = https://typo3.org/security
}
}
view < plugin.tx_news.view
view {
templateRootPaths {
2 = EXT:t3org_layout/Resources/Private/Templates/News/Security/
}
}
}
}
[global]
# RSS feed with all news elements, used by discourse integration
[globalVar = TSFE:type = 155]
config {
disableAllHeaderCode = 1
xhtml_cleaning = none
admPanel = 0
debug = 0
disablePrefixComment = 1
metaCharset = utf-8
additionalHeaders.5.header = Content-Type:application/rss+xml;charset=utf-8
additionalHeaders.5.replace = 1
absRefPrefix = {$plugin.tx_news.rss.channel.link}
}
pageNewsRSS = PAGE
pageNewsRSS {
typeNum = 155
10 = USER
10 {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
extensionName = News
vendorName = GeorgRinger
pluginName = Pi1
switchableControllerActions {
News {
1 = list
}
}
settings < plugin.tx_news.settings
settings {
detailPid = 185
startingpoint = 179
recursive = 1
format = xml
list.rss.channel {
title = typo3.org news
link = {$plugin.tx_news.rss.channel.link}
}
}
view < plugin.tx_news.view
view {
templateRootPaths {
2 = EXT:t3org_layout/Resources/Private/Templates/News/
}
}
}
}
[global]
config {
absRefPrefix = /
tx_realurl_enable = 1
}
plugin.tx_sfeventmgt {
view {
templateRootPaths {
100 = EXT:t3org_layout/Resources/Private/Extensions/SfEventMgt/Templates
}
partialRootPaths {
100 = EXT:t3org_layout/Resources/Private/Extensions/SfEventMgt/Partials
}
layoutRootPaths {
100 = EXT:t3org_layout/Resources/Private/Extensions/SfEventMgt/Layouts
}
}
settings.detailPid = {$plugin.tx_sfeventmgt.settings.detailPid}
}
config.recordLinks.sf_event_mgt {
typolink {
parameter = 230
additionalParams.data = field:uid
additionalParams.wrap = &tx_sfeventmgt_pievent[event]=|&tx_sfeventmgt_pievent[controller]=Event&tx_sfeventmgt_pievent[action]=detail
useCacheHash = 1
}
}
pageNewsICalendar = PAGE
pageNewsICalendar {
typeNum = 9819
10 < tt_content.list.20.sfeventmgt_pievent
10 {
switchableControllerActions {
Event {
1 = icalDownload
}
}
settings < plugin.tx_sfeventmgt.settings
settings {
startingpoint = 180
format = ical
domain.data = getEnv:HTTP_HOST
useStdWrap = domain
}
}
config {
disableAllHeaderCode = 1
xhtml_cleaning = none
admPanel = 0
metaCharset = utf-8
additionalHeaders = Content-Type:text/calendar;charset=utf-8
# Since 8 LTS
additionalHeaders.10.header = Content-Type:text/calendar;charset=utf-8
disablePrefixComment = 1
linkVars >
}
}
[globalVar = GP:tx_sfeventmgt_pievent|event > 0]
# remove all meta tags from cs_seo
page.headerData.654 >
# disable title tag
page.headerData.654.5 >
# remove meta description
page.headerData.654.7 >
# remove canonical
page.headerData.654.10 >
# remove robots
page.headerData.654.15 >
# remove open graph tags
page.headerData.654.30 >
# remove twitter card summary
page.headerData.654.35 >
# remove twitter card tags
page.headerData.654.40 >
config.noPageTitle = 2
temp.eventTitle = RECORDS
temp.eventTitle {
dontCheckPid = 1
source.data = GP:tx_sfeventmgt_pievent|event
source.intval = 1
tables = tx_sfeventmgt_domain_model_event
conf {
tx_sfeventmgt_domain_model_event >
tx_sfeventmgt_domain_model_event = TEXT
tx_sfeventmgt_domain_model_event {
field = title
htmlSpecialChars = 1
noTrimWrap = |||
}
}
}
page.headerData {
23424 = COA
23424 < temp.eventTitle
23424.wrap = <title>|</title>
}
[end]
plugin.tx_sfeventmgt {
view {
templateRootPaths {
100 = EXT:t3org_layout/Resources/Private/Extensions/SfEventMgt/Templates
}
partialRootPaths {