Answer the question
In order to leave comments, you need to log in
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
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>
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question