From 218d1857cbb8828aca817ac891dfbdde3c4e925c Mon Sep 17 00:00:00 2001 From: Richard Haeser Date: Wed, 10 Apr 2019 23:22:08 +0200 Subject: [PATCH 1/2] [TASK] Raised versions --- composer.json | 4 ++-- ext_emconf.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 25e203a..d078ec1 100644 --- a/composer.json +++ b/composer.json @@ -4,8 +4,8 @@ "type": "typo3-cms-extension", "license": "GPL-3.0-or-later", "require": { - "yoast-seo-for-typo3/yoast_seo": "^3.0", - "georgringer/news": "^6.3||^7.0" + "yoast-seo-for-typo3/yoast_seo": "^5.0", + "georgringer/news": "^7.0" }, "authors": [ { diff --git a/ext_emconf.php b/ext_emconf.php index 3db40ef..1606244 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -11,7 +11,7 @@ 'depends' => [ 'news' => '', 'yoast_seo' => '', - 'typo3' => '7.6.31-8.7.99' + 'typo3' => '8.7.0-9.5.99' ], 'conflicts' => [], 'suggests' => [] From cf6c53bf301143de886f75f680742d4995f9661f Mon Sep 17 00:00:00 2001 From: Richard Haeser Date: Thu, 11 Apr 2019 00:23:54 +0200 Subject: [PATCH 2/2] [TASK] Added compatibility with latest versions --- .../Overrides/tx_news_domain_model_news.php | 4 +- Configuration/TypoScript/setup.typoscript | 63 ++++++++++--------- 2 files changed, 35 insertions(+), 32 deletions(-) diff --git a/Configuration/TCA/Overrides/tx_news_domain_model_news.php b/Configuration/TCA/Overrides/tx_news_domain_model_news.php index aaf749f..838aa1b 100644 --- a/Configuration/TCA/Overrides/tx_news_domain_model_news.php +++ b/Configuration/TCA/Overrides/tx_news_domain_model_news.php @@ -19,6 +19,7 @@ 'tx_yoastseo_readability_analysis' => [ 'label' => $llPrefix . 'news.field.analysis', 'exclude' => true, + 'displayCond' => 'REC:NEW:false', 'config' => [ 'type' => 'text', 'renderType' => 'readabilityAnalysis' @@ -34,6 +35,7 @@ 'tx_yoastseo_focuskeyword_analysis' => [ 'label' => $llPrefix . 'news.field.analysis', 'exclude' => true, + 'displayCond' => 'REC:NEW:false', 'config' => [ 'type' => 'input', 'renderType' => 'focusKeywordAnalysis', @@ -89,4 +91,4 @@ ', '', 'after:bodytext' -); \ No newline at end of file +); diff --git a/Configuration/TypoScript/setup.typoscript b/Configuration/TypoScript/setup.typoscript index e084028..59aaf9d 100644 --- a/Configuration/TypoScript/setup.typoscript +++ b/Configuration/TypoScript/setup.typoscript @@ -9,34 +9,35 @@ lib.yoastSEO.slug.stdWrap.typolink.forceAbsoluteUrl = 0 [global] -[globalVar = GP:tx_news_pi1|news > 0] || [globalVar = GP:tx_news_pi1|news_preview > 0] - lib.yoastSEO { - canonicalURL > - og > - twitter > - - pageTitle > - pageTitle = RECORDS - pageTitle { - tables = tx_news_domain_model_news - dontCheckPid = 1 - source = {GP:tx_news_pi1|news},{GP:tx_news_pi1|news_preview} - source.insertData = 1 - - conf.tx_news_domain_model_news = TEXT - conf.tx_news_domain_model_news.field = alternative_title - conf.tx_news_domain_model_news.ifEmpty.field = title - } - - description > - description = RECORDS - description { - tables = tx_news_domain_model_news - source = {GP:tx_news_pi1|news},{GP:tx_news_pi1|news_preview} - source.insertData = 1 - - conf.tx_news_domain_model_news = TEXT - conf.tx_news_domain_model_news.field = description - } - } -[global] \ No newline at end of file +# +#[globalVar = GP:tx_news_pi1|news > 0] || [globalVar = GP:tx_news_pi1|news_preview > 0] +# lib.yoastSEO { +# canonicalURL > +# og > +# twitter > +# +# pageTitle > +# pageTitle = RECORDS +# pageTitle { +# tables = tx_news_domain_model_news +# dontCheckPid = 1 +# source = {GP:tx_news_pi1|news},{GP:tx_news_pi1|news_preview} +# source.insertData = 1 +# +# conf.tx_news_domain_model_news = TEXT +# conf.tx_news_domain_model_news.field = alternative_title +# conf.tx_news_domain_model_news.ifEmpty.field = title +# } +# +# description > +# description = RECORDS +# description { +# tables = tx_news_domain_model_news +# source = {GP:tx_news_pi1|news},{GP:tx_news_pi1|news_preview} +# source.insertData = 1 +# +# conf.tx_news_domain_model_news = TEXT +# conf.tx_news_domain_model_news.field = description +# } +# } +#[global]