xRS MODX extra

xRS collection_list & pdoPages

Logo ResourceSpace Logo Wordpress Logo Prestashop Logo Joomla

Get collection list with pdoPage

Action collection_list return collection list (photo sets).

Filtering by category (RS featured theme) is possible, in this example RS themes define types of photosets such as Feature, Project and Series. Each of theses categories need to be defined during upload or by editing collection attributes (for example here: http://yourresourcesoace.net/pages/collection_manage.php).

Known limitations

List all RS collections, 5 per page.

Please note the pdoPage xRS method doesn't support multiple calls on the same resource (xRS beta version).

Example

<div id="pdopage" style="min-height:500px;">
    <span class="badge badge-secondary float-right">Total: [[+xrs.total]]</span>
    <div class="rows row">
        [[!pdoPage?
            &element=`xrs`
            &ajaxMode=`default`
            &limit=`5`
                &action=`collection_list`
                &tpl=`xrsCollListDef`
        ]]
    </div>
    <div class="d-flex justify-content-between">
        [[!+page.nav]]
        [[+xrs.paging_dropdown]]    
    </div>
</div>

Result

Total: 146

Feature | Toden, Last Tokyo's Streetcar

Feature | Tokyo Big Sight

Series | Tokyo M2 building

Feature | Tokyo Metropolitan Government Building

Feature | Tokyo Motor Show