Commit 8a226286 authored by Thomas Löffler's avatar Thomas Löffler

Merge branch '5-add-constants-for-configuring-news-listing' into 'master'

Resolve "Add constants for configuring news listing"

Closes #5

See merge request !4
parents e1993ded 8c1d772a
......@@ -9,6 +9,7 @@ tt_content {
pidInList.field = pages
recursive.field = recursive
selectFields = pages.*
max = {$plugin.tx_justnews.maxItems}
where = NOT hidden AND doktype = 12
languageField = sys_language_uid
orderBy = news_datetime DESC
......
# customcategory=newslist=LLL:EXT:just_news/Resources/Private/Language/locallang_be.xlf:CType.news_list
plugin.tx_justnews {
# cat=newslist//a; type=int+; label=LLL:EXT:just_news/Resources/Private/Language/locallang_be.xlf:constants.maxItems
maxItems = 0
}
\ No newline at end of file
......@@ -55,6 +55,23 @@ To change the markup of the news listing you can add this code into TypoScript:
}
}
Configuration
=============
.. container:: table-row
Property
maxItems
Data type
integer+
Description
The maximum news items appearing on the listing
Default
0 (means no limit)
Editors Guide
=============
......
......@@ -21,6 +21,9 @@
<trans-unit id="wizard.description" xml:space="preserve">
<source>News list with possibility to filter for sysfolder and/or categories</source>
</trans-unit>
<trans-unit id="constants.maxItems" xml:space="preserve">
<source>Maximum items in list (zero = all)</source>
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment