Rate this article
2.50
Guests are most welcome to browse this section, but to download or contribute, you`ll need to be logged in and have a valid license subscription.
Browsing: Home » Downloads » Widgets

Top Rated box

This will add box with 5 stories that were highest rated, similar to "Most popular".

Vivvo version:
4.1.0+

Usage:

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>

Dependencies:
none

There is no video for this resource

Access to download denied. Please check and if needed renew your license subscription. Click for more info