Skip to content
Snippets Groups Projects
Commit f12ee0c1 authored by Dominik Beyer's avatar Dominik Beyer
Browse files

[TASK] Allow language synchronization for related news

parent 760b4c28
No related branches found
No related tags found
1 merge request!52Bugfix related news
......@@ -230,7 +230,7 @@ $GLOBALS['TCA']['pages']['types'][\SGalinski\SgNews\Utility\BackendNewsUtility::
],
'tx_sgnews_news_author' => [
'exclude' => TRUE,
'l10n_exclude' => TRUE,
'l10n_mode' => 'exclude',
'label' => $localLangDbPath . 'pages.tx_sgnews_news_author',
'config' => [
'type' => 'group',
......@@ -259,7 +259,7 @@ $GLOBALS['TCA']['pages']['types'][\SGalinski\SgNews\Utility\BackendNewsUtility::
],
'tx_sgnews_content_from_another_page' => [
'exclude' => TRUE,
'l10n_exclude' => TRUE,
'l10n_mode' => 'exclude',
'label' => $localLangDbPath . 'pages.tx_sgnews_content_from_another_page',
'config' => [
'type' => 'group',
......@@ -275,7 +275,6 @@ $GLOBALS['TCA']['pages']['types'][\SGalinski\SgNews\Utility\BackendNewsUtility::
],
'tx_sgnews_related_news' => [
'exclude' => TRUE,
'l10n_exclude' => TRUE,
'label' => $localLangDbPath . 'pages.tx_sgnews_related_news',
'config' => [
'type' => 'group',
......@@ -283,14 +282,16 @@ $GLOBALS['TCA']['pages']['types'][\SGalinski\SgNews\Utility\BackendNewsUtility::
'allowed' => 'pages',
'size' => 5,
'minitems' => 0,
'maxitems' => 99
'maxitems' => 99,
'behaviour' => [
'allowLanguageSynchronization' => TRUE,
]
],
],
'tx_sgnews_highlighted' => [
'displayCond' => 'FIELD:tx_sgnews_never_highlighted:=:0',
'onChange' => 'reload',
'exclude' => TRUE,
'l10n_exclude' => TRUE,
'label' => $localLangDbPath . 'pages.tx_sgnews_highlighted',
'config' => [
'type' => 'check',
......@@ -303,7 +304,6 @@ $GLOBALS['TCA']['pages']['types'][\SGalinski\SgNews\Utility\BackendNewsUtility::
'displayCond' => 'FIELD:tx_sgnews_highlighted:=:0',
'onChange' => 'reload',
'exclude' => TRUE,
'l10n_exclude' => TRUE,
'label' => $localLangDbPath . 'pages.tx_sgnews_never_highlighted',
'config' => [
'type' => 'check',
......@@ -314,7 +314,6 @@ $GLOBALS['TCA']['pages']['types'][\SGalinski\SgNews\Utility\BackendNewsUtility::
],
'tx_sgnews_tags' => [
'exclude' => TRUE,
'l10n_exclude' => TRUE,
'label' => $localLangDbPath . 'pages.tx_sgnews_tags',
'config' => [
'type' => 'select',
......@@ -341,7 +340,7 @@ $GLOBALS['TCA']['pages']['types'][\SGalinski\SgNews\Utility\BackendNewsUtility::
],
'tx_sgnews_likes' => [
'exclude' => TRUE,
'l10n_exclude' => TRUE,
'l10n_mode' => 'exclude',
'label' => $localLangDbPath . 'pages.tx_sgnews_likes',
'config' => [
'type' => 'input',
......@@ -351,7 +350,6 @@ $GLOBALS['TCA']['pages']['types'][\SGalinski\SgNews\Utility\BackendNewsUtility::
],
'lastUpdated' => [
'exclude' => TRUE,
'l10n_exclude' => TRUE,
'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.lastUpdated',
'config' => [
'type' => 'input',
......@@ -366,7 +364,6 @@ $GLOBALS['TCA']['pages']['types'][\SGalinski\SgNews\Utility\BackendNewsUtility::
],
'tx_sgnews_date_end' => [
'exclude' => TRUE,
'l10n_exclude' => TRUE,
'label' => 'LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:pages.tx_sgnews_date_end',
'config' => [
'type' => 'input',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment