evo_news_sorting – belka sortująca dla tt_news
luty 8th, 2010
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 class.tt_news.pi1.php.
Screenshoty
Instalacja
Zainstaluj wtyczkę w EM a następnie dodaj marker ###EVO_SORT_BAR### w szablonie html tt_newsa.
#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 –>
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 |
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
Pliki do pobrania:

Najnowsze komentarze