M
M
Maxim2019-03-19 16:47:00
MODX
Maxim, 2019-03-19 16:47:00

How to make show more?

how to make the show more button so that when you click on it, the page of the standard pagination changes?

{'!pdoPage' | snippet : [
            'element' => 'msProducts',
                'tpl' => '@FILE chunks/product.tpl', 
                'parents' => $_modx->resource.id,
                'limit' => $limit,
                'depth' => 4,
                'includeTVs' => 'views',
                'includeContent' => 1,
                'processTVs' => 1,
                'tvPrefix' => '',
                'sortby' => $sortby,
                'sortdir' => $direction,
 
            ]}

<div class="pagination-box">
        <p class="info">Показаны товары с 1 по 12 из {$_modx->getPlaceholder('page.total')} (всего страниц: {$_modx->getPlaceholder('pageCount')})</p>
    	<div class="pagination">
    		{$_modx->getPlaceholder('page.nav')}
    	</div>
    </div>

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Shinkar, 2019-03-20
@Accusser

Add &ajaxMode=`button`
If you wish, set your own class for the button in the parameters of the pdoPage snippet.
Everything is in the documentation

<div id="pdopage">
    
    <div class="rows">
        
    </div>
</div>

A
Ankhena, 2016-12-03
@Ankhena

On small screens
1. display:flex to black
order: 10 to red
2. Change flex-direction
3. Change float from right to left.
The width at which to change will have to be calculated using JS

W
WQP, 2016-12-03
@WQP

codepen.io/Glaswr/pen/eBVvrd
To this, you need to add the width calculation to js and then set the appropriate order for the article

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question