From aa6507ab7fbe418f7e50e8c17ae399072b51b9e8 Mon Sep 17 00:00:00 2001 From: Huyngeng Ea Date: Mon, 23 Jan 2017 14:26:10 +0700 Subject: [PATCH] [BUG] News list structured data is missing refs bug64 --- .../TypoScript/Library/lib.siteTitle.setupts | 2 + .../Extensions/News/Partials/List/Item.html | 38 ++++++++++++++----- .../Extensions/News/TypoScript/setup.ts | 28 ++++++++------ 3 files changed, 46 insertions(+), 22 deletions(-) create mode 100644 Configuration/TypoScript/Library/lib.siteTitle.setupts diff --git a/Configuration/TypoScript/Library/lib.siteTitle.setupts b/Configuration/TypoScript/Library/lib.siteTitle.setupts new file mode 100644 index 00000000..1b730bbc --- /dev/null +++ b/Configuration/TypoScript/Library/lib.siteTitle.setupts @@ -0,0 +1,2 @@ +lib.siteTitle = TEXT +lib.siteTitle.data = leveltitle:0 diff --git a/Resources/Private/Extensions/News/Partials/List/Item.html b/Resources/Private/Extensions/News/Partials/List/Item.html index eb505618..bce11dba 100644 --- a/Resources/Private/Extensions/News/Partials/List/Item.html +++ b/Resources/Private/Extensions/News/Partials/List/Item.html @@ -1,4 +1,7 @@ -{namespace n=GeorgRinger\News\ViewHelpers} @@ -22,13 +25,13 @@

- + - + @@ -37,7 +40,7 @@

- + @@ -57,7 +60,8 @@

- + + @@ -72,7 +76,7 @@

- + @@ -87,7 +91,7 @@

- +
@@ -95,7 +99,6 @@

- @@ -119,6 +122,12 @@

+ + +
+ + + +
+
diff --git a/Resources/Private/Extensions/News/TypoScript/setup.ts b/Resources/Private/Extensions/News/TypoScript/setup.ts index 8c9c5414..c0282c55 100644 --- a/Resources/Private/Extensions/News/TypoScript/setup.ts +++ b/Resources/Private/Extensions/News/TypoScript/setup.ts @@ -1,12 +1,16 @@ -plugin.tx_news.settings.defaultDetailPid = {$themes.configuration.features.newsDefaultDetailPid} -plugin.tx_news.settings.detail.media.image.lightbox.class = {$styles.content.textmedia.linkWrap.lightboxCssClass} - -plugin.tx_news.settings.newsCarousel.cropMaxCharacters = 136 - -plugin.tx_news.settings.card.cropMaxCharacters = 200 - -plugin.tx_news.settings.simpleList.cropMaxCharacters = 280 - -plugin.tx_news.settings.timeline.cropMaxCharacters = 500 - -plugin.tx_news.settings.list.media.dummyImage = typo3conf/ext/theme_t3kit/Resources/Public/Extensions/News/images/no_image.png +plugin.tx_news { + settings { + defaultDetailPid = {$themes.configuration.features.newsDefaultDetailPid} + newsCarousel.cropMaxCharacters = 136 + card.cropMaxCharacters = 200 + simpleList.cropMaxCharacters = 280 + timeline.cropMaxCharacters = 500 + list { + media.dummyImage = typo3conf/ext/theme_t3kit/Resources/Public/Extensions/News/images/no_image.png + publisher.logo = {$themes.configuration.header.logo.main.file} + } + detail { + media.image.lightbox.class = {$styles.content.textmedia.linkWrap.lightboxCssClass} + } + } +}