Menu Close

Get Support From ShopWired Close

All systems fully operational

Subscribe To Updates
Prefer To Live Chat? Chat directly with ShopWired support Available from 9.00am to 6.00pm Monday to Friday Quickest response time
Send A Message
Response within 24 hours

Menu Close



The video.twig view renders a page showing all of the videos loaded into the account using the videos app.

The videos view has access to the videos object.


If many videos are included on the page it can be slow to load. Pagination can be implemented with the use of a theme setting of videos_per_page.

    "label": "Videos per page displayed on video pages",
    "name": "videos_per_page",
    "type": "text",
    "defaultValue": 12

Once implemented, the total_pages variable (available on the videos page) will return the total number of pages.

A sample implementation is displayed below.

{% set prev = current_page - 1 %}
{% set next = current_page + 1 %}
    {% if total_pages > 1 %}
        {% if current_page > 1 %}
            <a href="/videos?page={{ prev }}"data-page="prev">Previous</a>
        {% endif %}
        {% for page in 1..total_pages %}
            <a href="/videos?page={{ page }}" class="{{ page == current_page ? 'active' : '' }}" data-page="{{ page }}">{{ page }}</a>
        {% endfor %}
        {% if current_page < total_pages %}
            <a href="/videos?page={{ next }}" data-page="next">Next</a>
        {% endif %}
    {% endif %}