Skip to content

Commit

Permalink
[TASK] Added compatibility with latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Haeser committed Apr 10, 2019
1 parent 218d185 commit cf6c53b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 32 deletions.
4 changes: 3 additions & 1 deletion Configuration/TCA/Overrides/tx_news_domain_model_news.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
'tx_yoastseo_readability_analysis' => [
'label' => $llPrefix . 'news.field.analysis',
'exclude' => true,
'displayCond' => 'REC:NEW:false',
'config' => [
'type' => 'text',
'renderType' => 'readabilityAnalysis'
Expand All @@ -34,6 +35,7 @@
'tx_yoastseo_focuskeyword_analysis' => [
'label' => $llPrefix . 'news.field.analysis',
'exclude' => true,
'displayCond' => 'REC:NEW:false',
'config' => [
'type' => 'input',
'renderType' => 'focusKeywordAnalysis',
Expand Down Expand Up @@ -89,4 +91,4 @@
',
'',
'after:bodytext'
);
);
63 changes: 32 additions & 31 deletions Configuration/TypoScript/setup.typoscript
Original file line number Diff line number Diff line change
Expand Up @@ -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]
#
#[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]

0 comments on commit cf6c53b

Please sign in to comment.