evo_news_sorting - sorting bar for tt_news
With help of evo_news_sorting you can easily and fast add sorting bar to tt_news list.
This extension uses built-in tt_news (ver 2.x and 3.x) hooks and does not require XCLASS'ing of class.tt_news.pi
Screenshots
Instalation
Just install the plugin and add new marker in tt_news template: ###EVO_SORT_BAR###. See example:
#tt_news_v3_template.html <p class="bodytext"><!â ###TEMPLATE_LIST### begin This is the template for the list of news in the archive or news page or search â> <p class="bodytext"><div class="searchFilter"> ###EVO_SORT_BAR###</div> <p class="bodytext"><div class="newsListWrap"> <p class="bodytext"><!â ###CONTENT### begin This is the part of the template substituted with the list of news: â> <p class="bodytext"><!â ###NEWS### begin Template for a single item â> <p class="bodytext"><div class="newsItem"> <div class="newsItemBody"> <div class="newsItemTitle"> ###NEWS_DATE### ###NEWS_TIME### <!â###LINK_ITEM###â> ###NEWS_TITLE### <!â###LINK_ITEM###â></div> <p class="bodytext"><div class="newsItemTxt"> ###NEWS_SUBHEADER###</div> </div> </div> <p class="bodytext"><!â ###NEWS### endâ> <!â ###CONTENT### end â> ###BROWSE_LINKS###</div> <p class="bodytext"><!â ###TEMPLATE_LIST### end â>
Configuration
Configuration is very simple, you need to set 3 properties:
Property: | Data type: | Description: | Default: |
|---|---|---|---|
evo_news_sorting.templateFile | file | Location of the bar's template | EXT:evo_news_sorting/templates/template.html |
evo_news_sorting.sortFields | string | Comma separated list of fields which you want to sort the news | datetime, title |
evo_news_sorting.limitOptions | int | The list of options to choose in the "items per page" | 10,20,30,40 |
evo_news_sorting.templateFile = EXT:evo_news_sorting/templates/template.html evo_news_sorting.sortFields = datetime, title evo_news_sorting.limitOptions = 10,20,30,40 }
Video
###YOUTUBEVIDEO###
Files to download:


Recent Comments
Powered by Disqus