Skip to content
Snippets Groups Projects
Commit 2fadf4a7 authored by Fabian Galinski's avatar Fabian Galinski :pouting_cat:
Browse files

[BUGFIX] The like count field isn't visible within the TCA

parent ab728e62
No related branches found
No related tags found
No related merge requests found
......@@ -188,10 +188,11 @@ $columns = array_merge(
]
],
'tx_sgnews_likes' => [
'label' => 'LLL:EXT:cms/locallang_tca.xlf:fe_users.likes',
'label' => 'LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:pages.tx_sgnews_likes',
'config' => [
'type' => 'input',
'size' => '20'
'size' => '20',
'eval' => 'trim',
]
],
'lastUpdated' => [
......@@ -224,7 +225,8 @@ if (\SGalinski\SgNews\Utility\VersionUtility::isVersion870OrHigher()) {
$GLOBALS['TCA']['pages']['palettes']['editorialWithNewsAuthor'] = [
'showitem' => 'tx_sgnews_author;LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:pages.tx_sgnews_author.inPalette,
author;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.author_formlabel,
--linebreak--, lastUpdated;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.lastUpdated_formlabel',
--linebreak--, lastUpdated;LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.lastUpdated_formlabel,
tx_sgnews_likes',
'canNotCollapse' => 1,
];
......@@ -312,7 +314,8 @@ if (\SGalinski\SgNews\Utility\VersionUtility::isVersion870OrHigher()) {
$GLOBALS['TCA']['pages']['palettes']['editorialWithNewsAuthor'] = [
'showitem' => 'tx_sgnews_author;LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:pages.tx_sgnews_author.inPalette,
author;LLL:EXT:cms/locallang_tca.xlf:pages.author_formlabel,
--linebreak--, lastUpdated;LLL:EXT:cms/locallang_tca.xlf:pages.lastUpdated_formlabel',
--linebreak--, lastUpdated;LLL:EXT:cms/locallang_tca.xlf:pages.lastUpdated_formlabel,
tx_sgnews_likes',
'canNotCollapse' => 1,
];
......
......@@ -29,6 +29,10 @@
<source>Highlighted / Top Element</source>
<target>Hervorgehoben / Top-Element</target>
</trans-unit>
<trans-unit id="pages.tx_sgnews_likes" approved="yes">
<source>Like Count</source>
<target>Anzahl der Likes</target>
</trans-unit>
<trans-unit id="pages.tx_sgnews_never_highlighted" approved="yes">
<source>Don't show in "Latest News"</source>
<target>Nicht in "letzten News" anzeigen</target>
......
......@@ -24,6 +24,9 @@
<trans-unit id="pages.tx_sgnews_highlighted">
<source>Highlighted / Top Element</source>
</trans-unit>
<trans-unit id="pages.tx_sgnews_likes">
<source>Like Count</source>
</trans-unit>
<trans-unit id="pages.tx_sgnews_never_highlighted">
<source>Don't show in "Latest News"</source>
</trans-unit>
......
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