Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ru2fac/f07f3fc37a372a385e7764cc110efdae to your computer and use it in GitHub Desktop.
Save ru2fac/f07f3fc37a372a385e7764cc110efdae to your computer and use it in GitHub Desktop.
<div class="news-items" id="newsItems">
[[!+news-nav]]
<div class="rows" style="overflow: hidden;">
[[!pdoPage?
&parents=`18`
&tpl=`newItemTpl`
&showHidden=`1`
&includeTVs=`image`
&limit=`4`
&sortby=`{"publishedon":"ASC"}`
&pageVarKey=`news-page`
&totalVar=`news-total`
&pageNavVar=`news-nav`
&pageCountVar=`news-count`
&ajaxMode=`button`
&ajaxElemWrapper=`#newsItems`
&ajaxElemRows=`#newsItems .rows`
&ajaxElemPagination=`#newsItems .pagination`
&ajaxElemLink=`#newsItems .pagination a`
&ajaxElemMore=`#newsItems .more`
&ajaxTplMore=`@INLINE <span class="news-more more"><span></span>Показать еще</span>`
]]
</div>
</div>
@ru2fac
Copy link
Author

ru2fac commented Nov 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment