Recent posts

Advanced mail subscription

The CMS TYPO3 extension repository already offers a few plugins that can...
09 January 2012

Convenient In/Out animation using expressions

We recently had an opportunity to make a set of instructional animations...
16 December 2012

Nginx boost extension

Introduction  The Evo_nginx_boost plugin allows us to cache pages...
14 December 2011

Tags

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

evo_news_sorting frontend example 

Instalation

Just install the plugin and  add new marker in tt_news template:  ###EVO_SORT_BAR###. See example:

zaznacz
  1. #tt_news_v3_template.html
  2. <p class="bodytext"><!– ###TEMPLATE_LIST### begin  This is the template for the list of news in the archive or news page or search –>
  3. <p class="bodytext"><div class="searchFilter"> ###EVO_SORT_BAR###</div>
  4. <p class="bodytext"><div class="newsListWrap">
  5. <p class="bodytext"><!– ###CONTENT### begin     This is the part of the template substituted with the list of news:  –>
  6. <p class="bodytext"><!– ###NEWS### begin Template for a single item –>
  7. <p class="bodytext"><div class="newsItem"> <div class="newsItemBody"> <div class="newsItemTitle"> ###NEWS_DATE### ###NEWS_TIME### <!–###LINK_ITEM###–> ###NEWS_TITLE### <!–###LINK_ITEM###–></div>
  8. <p class="bodytext"><div class="newsItemTxt"> ###NEWS_SUBHEADER###</div> </div> </div>
  9. <p class="bodytext"><!– ###NEWS### end–> <!– ###CONTENT###  end –> ###BROWSE_LINKS###</div>
  10. <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

zaznacz
  1.  
  2. plugin.tt_news { 
  3. evo_news_sorting.templateFile = EXT:evo_news_sorting/templates/template.html 
  4. evo_news_sorting.sortFields = datetime, title 
  5. evo_news_sorting.limitOptions = 10,20,30,40
  6. }
  7.  
 

Video

Files to download:

No comments
Add comment

* - required field