Last active
May 23, 2018 08:40
-
-
Save TrywaR/a7f19c1d8a5cc998caa705a5edb4c5af to your computer and use it in GitHub Desktop.
[ MODX BS4 ] pdoPage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="pdopage"> | |
<div class="rows"> | |
[[!pdoPage? | |
&parents=`[[*id]]` | |
&element=`pdoResources` | |
&limit=`1` | |
&ajaxMode=`default` | |
&tpl=`resources` | |
&tplPageWrapper=`@INLINE | |
<nav aria-label="Page navigation example"> | |
<ul class="pagination"> | |
[[+prev]][[+pages]][[+next]] | |
</ul> | |
</nav>` | |
&tplPage=`@INLINE | |
<li class="page-item"> | |
<a class="page-link" href="[[+href]]">[[+pageNo]]</a> | |
</li>` | |
&tplPageActive=`@INLINE | |
<li class="page-item active"> | |
<a class="page-link" href="[[+href]]">[[+pageNo]] | |
<span class="sr-only">(current)</span> | |
</a> | |
</li>` | |
&tplPageSkip=`@INLINE | |
<li class="page-item disabled"> | |
<span>...</span> | |
</li>` | |
&tplPagePrev=`@INLINE | |
<li class="page-item control"> | |
<a class="page-link" href="[[+href]]" tabindex="-1">«</a> | |
</li>` | |
&tplPagePrevEmpty=`@INLINE | |
<li class="page-item control"> | |
<a class="page-link" href="[[+href]]" tabindex="-1">«</a> | |
</li>` | |
&tplPageNext=`@INLINE | |
<li class="page-item control"> | |
<a class="page-link" href="[[+href]]">»</a> | |
</li>` | |
&tplPageNextEmpty=`@INLINE | |
<li class="page-item control"> | |
<a class="page-link" href="[[+href]]">»</a> | |
</li>` | |
]] | |
</div> | |
[[!+page.nav]] | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment