Skip to content
Snippets Groups Projects
Commit f0545778 authored by Michael Kessler's avatar Michael Kessler
Browse files

[TASK] Add fields for overriding category and tag label in overview

parent e2365a52
No related branches found
No related tags found
1 merge request!40[TASK] Consider all filters when using the overview
This commit is part of merge request !40. Comments created here will be created in the context of that merge request.
......@@ -87,6 +87,22 @@
</config>
</TCEforms>
</settings.enableFilter>
<settings.categoryLabel>
<TCEforms>
<label>LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:plugin.overview.flexForm.categoryLabel</label>
<config>
<type>input</type>
</config>
</TCEforms>
</settings.categoryLabel>
<settings.tagLabel>
<TCEforms>
<label>LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:plugin.overview.flexForm.tagLabel</label>
<config>
<type>input</type>
</config>
</TCEforms>
</settings.tagLabel>
<settings.newsLimit>
<TCEforms>
<label>LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:plugin.overview.flexForm.newsLimit</label>
......
......@@ -189,6 +189,14 @@
<source><![CDATA[Categories]]></source>
<target><![CDATA[Kategorien]]></target>
</trans-unit>
<trans-unit id="plugin.overview.flexForm.categoryLabel" approved="yes">
<source><![CDATA[Override category label]]></source>
<target><![CDATA[Kategorie-Label überschreiben]]></target>
</trans-unit>
<trans-unit id="plugin.overview.flexForm.tagLabel" approved="yes">
<source><![CDATA[Override tag label]]></source>
<target><![CDATA[Tag-Label überschreiben]]></target>
</trans-unit>
<trans-unit id="plugin.listByCategory.flexForm.categories.description" approved="yes">
<source><![CDATA[If more than one category is selected the pagination breaks so you need to make sure to set the news limit high enough to display all news on one page.]]></source>
<target><![CDATA[Falls mehr als eine Kategorie ausgewählt ist, bricht die Paginierung, deshalb muss sichergestellt werden, dass das Anzeigelimit ausreichend hoch eingestellt ist, dass alle News auf einer Seite angezeigt werden.]]></target>
......
......@@ -156,6 +156,12 @@
<trans-unit id="plugin.overview.flexForm.categoryRestrictions">
<source><![CDATA[Category Selection]]></source>
</trans-unit>
<trans-unit id="plugin.overview.flexForm.categoryLabel">
<source><![CDATA[Override category label]]></source>
</trans-unit>
<trans-unit id="plugin.overview.flexForm.tagLabel">
<source><![CDATA[Override tag label]]></source>
</trans-unit>
<trans-unit id="plugin.overview.flexForm.categoryRestrictions.description">
<source><![CDATA[You can select specific categories to be shown in the tabs.
If none are selected, all categories will be available in the frontend.]]></source>
......
......@@ -2,7 +2,14 @@
<div class="tx-sgnews-filter-bar">
<div class="tx-sgnews-filter-bar-form-control">
<label for="filter-categories">
<f:translate key="frontend.filter.category"/>
<f:if condition="{categoryLabel}">
<f:then>
{categoryLabel}
</f:then>
<f:else>
<f:translate key="frontend.filter.category"/>
</f:else>
</f:if>
</label>
<f:form.select class="tx-sgnews-select form-control" multiple="0" size="1" value="{selectedCategory.uid}"
property="category" optionLabelField="title" optionValueField="uid" options="{categories}"
......@@ -10,7 +17,14 @@
</div>
<div class="tx-sgnews-filter-bar-form-control">
<label for="filter-tags">
<f:translate key="frontend.filter.tag"/>
<f:if condition="{tagLabel}">
<f:then>
{tagLabel}
</f:then>
<f:else>
<f:translate key="frontend.filter.tag"/>
</f:else>
</f:if>
</label>
<f:form.select class="tx-sgnews-select form-control" multiple="0" size="1" value="{selectedTag.uid}"
property="tag" optionValueField="uid" options="{tags}" id="filter-tags"
......
......@@ -10,7 +10,7 @@
<f:then>
<div id="tx-sgnews-newslist">
<f:render partial="Filter" arguments="{tagTabs: tagTabs, categoryTabs: categoryTabs, categories: categories,
tags: tags, selectedTag: selectedTag, selectedCategory: selectedCategory}" />
tags: tags, selectedTag: selectedTag, selectedCategory: selectedCategory, categoryLabel: settings.categoryLabel, tagLabel: settings.tagLabel}" />
<br />
<f:render section="content" arguments="{_all}" />
</div>
......
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