evo_news_sorting - belka sortująca dla tt_news

Bartosz Aninowski Poniedziałek, 08 Lutego 2010 10:14 komentarzy: 0

TAGI:hook, sorting, toolbar, tt_news

Evo_news_sorting to mała wtyczka, za pomocą której można w łatwy i szybki sposób dodać belkę z sortowaniem do list tt_news. Wtyczka używa mechanizmów hooków wbudowanych w tt_news 3.X i 2.X i nie wymaga XCLASS'owania

Screenshoty

evo_news_sorting frontend example

Instalacja

Zainstaluj wtyczkę w EM a następnie dodaj marker ###EVO_SORT_BAR### w szablonie html tt_newsa.

zaznacz
  1.  
  2. #tt_news_v3_template.html
  3. <!– ###TEMPLATE_LIST### begin  This is the template for the list of news in the archive or news page or search –>
  4. <div class="searchFilter"> ###EVO_SORT_BAR###</div>
  5. <div class="newsListWrap"> 
  6. <!–###CONTENT### begin     This is the part of the template substituted with the list of news:  –> 
  7. <!–###NEWS### begin Template for a single item –>
  8. <div class="newsItem">
  9. <div class="newsItemBody">
  10. <div class="newsItemTitle"> ###NEWS_DATE### ###NEWS_TIME###     
  11. <!–###LINK_ITEM###–>
  12. ###NEWS_TITLE###
  13.         <!–###LINK_ITEM###–></div>
  14. <div class="newsItemTxt"> ###NEWS_SUBHEADER###</div>
  15. </div>
  16. </div>
  17. <!–###NEWS### end–> 
  18. <!–###CONTENT###  end–> 
  19. ###BROWSE_LINKS###</div>
  20. <!– ###TEMPLATE_LIST### end–>
  21.  

Konfiguracja

Konfiguracja jest bardzo prosta i sprowadza się do określenia 3 właściwości:

Property:

Data type:

Description:

Default:

evo_news_sorting.templateFile

file

Location of the toolbar'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.  

Video

Pliki do pobrania:

blog comments powered by Disqus