Top Rated box
Vivvo version: 4.0+
Description:
Top rated box
Dependencies:
Vivvo 4.0+
In order to display top rated articles list on your site, you'll have to download attachment and copy it to {VIVVO_TEMPLATE}box/
This box can be easily added to your site by pasting code:
<vte:include file="{VIVVO_TEMPLATE_DIR}box/top_rated.tpl" />
where you want your box to appear.
You can also add this as a new tab to one of boxes that have tabs.
To do that, you'll need to add the tab itself (look for lines similar to this one, and add it after (or before, if you want it to be first) other tabs.
<li><a href="#top_rated"><span>Top rated</span></a></li>
Afterwards, you'll have to add corresponding box. Place it in the same block of code as the other content boxes.
<ul id="top_rated">
<vte:box module="box_article_list">
<vte:params>
<vte:param name="cache" value="1" />
<vte:param name="search_sort_by" value="vote_avg" />
<vte:param name="search_limit" value="5" />
<vte:param name="search_status" value="1" />
</vte:params>
<vte:template>
<div class="box_content">
<ul>
<vte:foreach item = "article" from = "{article_list}">
<li>
<a href="{article.get_href}">
<vte:value select="{article.get_title}" />
</a>
</li>
</vte:foreach>
</ul>
</div>
</vte:template>
</vte:box>
</ul>
Screenshot:

Changelog:
n/a
See Also:
n/a



Comments (0 posted):
You must be registered member of Vivvo.net to post a comment.