Last active
August 29, 2015 14:16
-
-
Save MacConin/c983459f04f7abffc52b to your computer and use it in GitHub Desktop.
Output of resources in rows
something like outputting 4 resources:
<row><resource><resource><resource></row>
<row><resource></row>
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
<!-- outputting in rows --> | |
<div class="row"> | |
[[pdoResources? | |
&parents=`[[*id]]` | |
&depth=`2` | |
&limit=`99` | |
&includeTVList=`myTv,anotherTv` | |
&tpl=`my.chunk` | |
]] | |
</div> | |
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 class="col-md-4 "> | |
do something | |
</div> | |
[[+idx:if=`[[+idx:mod=`3`]]`:eq=`0`:then=`</div><br /><div class="row">`:else=``]] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is shorter and one parsing loop less (but it does not work in pdoTools fastmode):
For fast mode try this (untested):