Skip to content
Snippets Groups Projects
Commit 250af1f3 authored by Tim Wagner's avatar Tim Wagner
Browse files

[TASK] Discard ScrollBrowser Filtering and add hint that pagination can break...

[TASK] Discard ScrollBrowser Filtering and add hint that pagination can break to newsByCategory plugin
parent d5770c5c
No related branches found
No related tags found
1 merge request!15Feature fix typo3v9 testing issues
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" target-language="de" datatype="plaintext" original="messages" date="2014-06-05T19:38:28Z">
<file source-language="en" target-language="de" datatype="plaintext" original="messages" date="2019-03-19T13:37:08Z">
<header>
<type>database</type>
<description>Language labels for database tables/fields belonging to extension 'sg_news'</description>
......@@ -9,6 +9,14 @@
<authorEmail>stefan@sgalinski.de</authorEmail>
</header>
<body>
<trans-unit id="pages.slug" approved="yes">
<source><![CDATA[URL Segment (generated from Pagetitle initially, has to be updated manually)]]></source>
<target><![CDATA[URL Segment (initial generiert aus Seitentitel, muss manuell aktualisiert werden)]]></target>
</trans-unit>
<trans-unit id="pages.subtitle" approved="yes">
<source><![CDATA[Headline]]></source>
<target><![CDATA[Schlagzeile]]></target>
</trans-unit>
<trans-unit id="pages.subtitle.inPalette" approved="yes">
<source><![CDATA[Title]]></source>
<target><![CDATA[Titel]]></target>
......@@ -17,6 +25,10 @@
<source><![CDATA[Images]]></source>
<target><![CDATA[Bilder]]></target>
</trans-unit>
<trans-unit id="pages.title" approved="yes">
<source><![CDATA[Pagetitle (automatically generated from Last Update + Headline)]]></source>
<target><![CDATA[Seitentitel (automatisch generiert aus Letzte Aktualisierung + Schlagzeile)]]></target>
</trans-unit>
<trans-unit id="pages.tx_sgnews_author" approved="yes">
<source><![CDATA[Author]]></source>
<target><![CDATA[Autor]]></target>
......@@ -69,18 +81,6 @@
<source><![CDATA[Use Image Cropping]]></source>
<target><![CDATA[Bild-Cropping aktivieren]]></target>
</trans-unit>
<trans-unit id="pages.title">
<source><![CDATA[Pagetitle (automatically generated from Last Update + Headline)]]></source>
<target><![CDATA[Seitentitel (automatisch generiert aus Letzte Aktualisierung + Schlagzeile)]]></target>
</trans-unit>
<trans-unit id="pages.subtitle">
<source><![CDATA[Headline]]></source>
<target><![CDATA[Schlagzeile]]></target>
</trans-unit>
<trans-unit id="pages.slug">
<source><![CDATA[URL Segment (generated from Pagetitle initially, has to be updated manually)]]></source>
<target><![CDATA[URL Segment (initial generiert aus Seitentitel, muss manuell aktualisiert werden)]]></target>
</trans-unit>
<trans-unit id="plugin.flexForm" approved="yes">
<source><![CDATA[Settings]]></source>
<target><![CDATA[Einstellungen]]></target>
......@@ -142,8 +142,8 @@
<target><![CDATA[Tags]]></target>
</trans-unit>
<trans-unit id="plugin.overview.flexForm.listByCategory.categories" approved="yes">
<source><![CDATA[Categories (No Selection = current page)]]></source>
<target><![CDATA[Kategorien (Keine Auswahl = aktuelle Seite)]]></target>
<source><![CDATA[Categories (No Selection = current page) – If more than one category is selected the pagination breaks. Make sure to set the news limit high enough to display all news on one page.]]></source>
<target><![CDATA[Kategorien (Keine Auswahl = aktuelle Seite) – Falls mehr als eine Kategorie ausgewählt ist, bricht die Paginierung. Es muss sichergestellt werden, dass das Anzeigelimit ausreichend hoch eingestellt ist, dass alle News auf einer Seite angezeigt werden.]]></target>
</trans-unit>
<trans-unit id="plugin.overview.flexForm.listByCategory.tags" approved="yes">
<source><![CDATA[Tags, if none is selected, then all will be displayed]]></source>
......@@ -167,4 +167,4 @@
</trans-unit>
</body>
</file>
</xliff>
</xliff>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" datatype="plaintext" original="messages" date="2014-06-05T19:38:28Z">
<file source-language="en" datatype="plaintext" original="messages" date="2019-03-19T13:37:08Z">
<header>
<type>database</type>
<description>Language labels for database tables/fields belonging to extension 'sg_news'</description>
......@@ -9,12 +9,21 @@
<authorEmail>stefan@sgalinski.de</authorEmail>
</header>
<body>
<trans-unit id="pages.slug">
<source><![CDATA[URL Segment (generated from Pagetitle initially, has to be updated manually)]]></source>
</trans-unit>
<trans-unit id="pages.subtitle">
<source><![CDATA[Headline]]></source>
</trans-unit>
<trans-unit id="pages.subtitle.inPalette">
<source><![CDATA[Title]]></source>
</trans-unit>
<trans-unit id="pages.tabs.images">
<source><![CDATA[Images]]></source>
</trans-unit>
<trans-unit id="pages.title">
<source><![CDATA[Pagetitle (automatically generated from Last Update + Headline)]]></source>
</trans-unit>
<trans-unit id="pages.tx_sgnews_author">
<source><![CDATA[Author]]></source>
</trans-unit>
......@@ -54,15 +63,6 @@
<trans-unit id="pages.tx_sgnews_use_image_crop">
<source><![CDATA[Use Image Cropping]]></source>
</trans-unit>
<trans-unit id="pages.title">
<source><![CDATA[Pagetitle (automatically generated from Last Update + Headline)]]></source>
</trans-unit>
<trans-unit id="pages.subtitle">
<source><![CDATA[Headline]]></source>
</trans-unit>
<trans-unit id="pages.slug">
<source><![CDATA[URL Segment (generated from Pagetitle initially, has to be updated manually)]]></source>
</trans-unit>
<trans-unit id="plugin.flexForm">
<source><![CDATA[Settings]]></source>
</trans-unit>
......@@ -109,7 +109,7 @@
<source><![CDATA[Tags]]></source>
</trans-unit>
<trans-unit id="plugin.overview.flexForm.listByCategory.categories">
<source><![CDATA[Categories (No Selection = current page)]]></source>
<source><![CDATA[Categories (No Selection = current page) – If more than one category is selected the pagination breaks. Make sure to set the news limit high enough to display all news on one page.]]></source>
</trans-unit>
<trans-unit id="plugin.overview.flexForm.listByCategory.tags">
<source><![CDATA[Tags, if none is selected, then all will be displayed]]></source>
......@@ -128,4 +128,4 @@
</trans-unit>
</body>
</file>
</xliff>
</xliff>
\ No newline at end of file
......@@ -93,21 +93,6 @@ SG.ElementScrollBrowser.prototype = {
results.each(function(index, result) {
var $result = $(result);
var children = $result.children();
//TODO Filter children news teasers by categories
var categories = document.querySelectorAll('.tx-sgnews-category-title');
categories.forEach(function(category) {
var categorySection = category.nextSibling;
if(!categorySection){
return;
}
var elementCategories = categorySection.querySelectorAll('.category');
elementCategories.forEach(function(elementCategory) {
if(elementCategory.innerText.trim() !== category.innerText.trim()) {
var elementToRemove = elementCategory.parentElement.parentElement.parentElement;
categorySection.childNodes[0].childNodes[0].removeChild(elementToRemove);
}
});
});
if (!children.length) {
return;
......
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