Commit 83f7ffef authored by Stefan Busemann's avatar Stefan Busemann

Merge branch 'task/activate-typoscript-linter' into 'develop'

Activate typoscript linter and update TS files

See merge request !339
parents f03e85dd 1f1fb689
Pipeline #8415 passed with stages
in 5 minutes and 37 seconds
TCEMAIN.linkHandler.tx_news {
TCEMAIN.linkHandler {
tx_news {
handler = TYPO3\CMS\Recordlist\LinkHandler\RecordLinkHandler
label = News
configuration {
table = tx_news_domain_model_news
storagePid = 179
hidePageTree = 1
table = tx_news_domain_model_news
storagePid = 179
hidePageTree = 1
}
scanAfter = page
}
}
TCEMAIN.linkHandler.sf_event_mgt {
sf_event_mgt {
handler = TYPO3\CMS\Recordlist\LinkHandler\RecordLinkHandler
label = Events
configuration {
table = tx_sfeventmgt_domain_model_event
storagePid = 180
hidePageTree = 1
table = tx_sfeventmgt_domain_model_event
storagePid = 180
hidePageTree = 1
}
scanAfter = page
}
}
TCEMAIN.preview {
tx_news_domain_model_news {
# Available with latest 8.7+ only
# see https://forge.typo3.org/issues/78336
useCacheHash = 1
previewPageId = 517
useDefaultLanguageRecord = 0
fieldToParameterMap {
uid = tx_news_pi1[news_preview]
}
additionalGetParameters.tx_news_pi1 {
controller = News
action = detail
}
}
}
TCEMAIN.preview {
tx_news_domain_model_news {
# Available with latest 8.7+ only
# see https://forge.typo3.org/issues/78336
useCacheHash = 1
previewPageId = 517
useDefaultLanguageRecord = 0
fieldToParameterMap {
uid = tx_news_pi1[news_preview]
}
additionalGetParameters {
tx_news_pi1.controller = News
tx_news_pi1.action = detail
}
}
}
tx_sfeventmgt.templateLayouts {
1 = Latest view
2 = List view, no category selector
1 = Latest view
2 = List view, no category selector
}
# Define Google Map API Key for Events > Locations module
tx_t3org_layout {
setGoogleMapApiKey = XXXXX
setGoogleMapApiKey = XXXXX
}
TCEMAIN {
# Owner be_users UID for new pages:
permissions.userid = 1
# Owner be_groups UID for new pages:
permissions.groupid = 1
permissions {
# User can do anything (default):
user = 31
# Group can do anything
# (normally "delete" is disabled)
group = 31
# Everybody can at least see the page
# (normally everybody can do nothing)
everybody = show
}
permissions {
# Owner be_users UID for new pages:
userid = 1
# Owner be_groups UID for new pages:
groupid = 1
# User can do anything (default):
user = 31
# Group can do anything
# (normally "delete" is disabled)
group = 31
# Everybody can at least see the page
# (normally everybody can do nothing)
everybody = show
}
}
# News are hidden by default, only admins and editors with the role "news_reviewer" are allowed to unhide records
......@@ -24,7 +25,7 @@ TCAdefaults {
}
TCEFORM {
tx_news_domain_model_news {
hidden.disabled = 1
tx_news_domain_model_news.hidden {
disabled = 1
}
}
<?php
// Add static TypoScript files
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
't3org_layout',
'Configuration/TypoScript/SecurityAdvisories/',
'News settings for security advisories'
);
# Include required static constants
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:solr/Configuration/TypoScript/Solr/constants.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:news/Configuration/TypoScript/constants.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:sf_event_mgt/Configuration/TypoScript/constants.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:t3o_membership/Configuration/TypoScript/constants.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:typo3_roadmap/Configuration/TypoScript/constants.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:certifications/Configuration/TypoScript/constants.txt">
# PID with fe_users
styles.content.loginform.pid = 178
# Page layout settings
tx_t3olayout.page.metamenuid = 7
tx_t3olayout.page.searchResultsPid = 184
tx_t3olayout.page.searchid = 184
tx_t3olayout.page.loginid = 187
# Styling settings
styles.content.textmedia.maxW = 1500
styles.content.textmedia.maxWInText = 1500
# Plugin persistence PIDs
plugin.tx_certifications.persistence.storagePid = 212
plugin.tx_t3omembership.persistence.storagePid = 227
plugin.tx_typo3roadmap.persistence.storagePid = 228
# Events settings
plugin.tx_sfeventmgt.settings.detailPid = 230
# News Settings
plugin.tx_news.settings.detailPid = 185
# Default constant for "plugin.txt_csseo"
plugin.tx_csseo.sitemap.pages.rootPid = 1
plugin.tx_csseo.social.defaultImage = fileadmin/t3o_common_storage/images/banner/6932872980_d788451b65_o.jpg
plugin.tx_csseo.structureddata.search.enable = 1
plugin.tx_csseo.structureddata.breadcrumb.enable = 0
plugin.tx_csseo.hreflang.enable = 0
plugin.tx_csseo.social.twitter.defaultImage = fileadmin/t3o_common_storage/images/banner/6932872980_d788451b65_o.jpg
plugin.tx_csseo.social.twitter.image.height = 329c
plugin.tx_csseo.social.twitter.creator = TYPO3 Association
plugin.tx_csseo.social.twitter.site = TYPO3Assoc
plugin.tx_csseo.sitemap.additional = sitemap.xml
plugin.tx_csseo.social.openGraph.image.width = 1024
plugin.tx_csseo.social.openGraph.image.height = 329c
plugin.tx_csseo.structureddata.search.pid = 184
\ No newline at end of file
# 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
[request.getQueryParams()['tx_news_pi1]['news'] > 0]
page.headerData {
# remove all meta tags from cs_seo
654 >
}
config.noPageTitle = 2
temp.newsTitle = RECORDS
temp.newsTitle {
dontCheckPid = 1
tables = tx_news_domain_model_news
source {
data = GP:tx_news_pi1|news
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
wrap = &tx_news_pi1[news]=|&tx_news_pi1[controller]=News&tx_news_pi1[action]=detail
}
useCacheHash = 1
}
}
page.headerData {
# Add link to RSS feed in head
100 = TEXT
100.value = <link rel="alternate" type="application/rss+xml" title="Official typo3.org news" href="/rss" />
# Add link to RSS Security feed in head
101 = TEXT
101.value = <link rel="alternate" type="application/rss+xml" title="Official typo3.org news" href="/rss-security" />
}
# RSS feed with the latest 30 news (default)
[getTSFE().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
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]
# RSS feed with the latest 30 news (security advisories)
[getTSFE().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
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
[getTSFE().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
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
}