Answer the question
In order to leave comments, you need to log in
MODX REVO. How to display posts via getResources 3 in each row?
The template uses Bootsrap grid layout. You need to display 9 posts, 3 in each row, while the markup is as follows:
<div class="row">
<div class="col-md-4"> ... </div>
<div class="col-md-4"> ... </div>
<div class="col-md-4"> ... </div>
</div>
<div class="row">
<div class="col-md-4"> ... </div>
<div class="col-md-4"> ... </div>
<div class="col-md-4"> ... </div>
</div>
<div class="col-md-4"> ... </div>
</div> <!-- /row --><div class="row">
</div> <div class="row">
Answer the question
In order to leave comments, you need to log in
I found the following solution for myself:
Create templates firstPost, lastPost, post3th, post.
first Post:
<div class="row">
<div class="col-md-4">
...
</div> <!-- /.col-md-4 -->
<div class="col-md-4">
...
</div> <!-- /.col-md-4 -->
</div> <!-- /row -->
<div class="col-md-4">
...
</div> <!-- /.col-md-4 -->
</div> <!-- /.row -->
<div class="row">
<div class="col-md-4">
...
</div> <!-- /. col-md-4 -->
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question