evo_news_sorting – sorting bar for tt_news
February 8th, 2010
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.pi1.php.
Screenshots
Instalation
Just install the plugin and add new marker in tt_news template: ###EVO_SORT_BAR###. See example:
#tt_news_v3_template.html
-
<!– ###TEMPLATE_LIST### begin This is the template for the list of news in the archive or news page or search –>
-
<div class="searchFilter"> ###EVO_SORT_BAR###</div>
-
<div class="newsListWrap">
-
<!– ###CONTENT### begin This is the part of the template substituted with the list of news: –>
-
<!– ###NEWS### begin Template for a single item –>
-
<div class="newsItem">
-
<div class="newsItemBody">
-
<div class="newsItemTitle"> ###NEWS_DATE### ###NEWS_TIME###
-
<!–###LINK_ITEM###–>
-
###NEWS_TITLE###
-
<!–###LINK_ITEM###–></div>
-
<div class="newsItemTxt"> ###NEWS_SUBHEADER###</div>
-
</div>
-
</div>
-
<!– ###NEWS### end–>
-
<!– ###CONTENT### end –>
-
###BROWSE_LINKS###</div>
-
<!– ###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 |
plugin.tt_news {
-
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
Files to download:

Recent Comments