S
S
San0072019-12-10 10:16:06
css
San007, 2019-12-10 10:16:06

How to display directory via pdoTools in MODx?

Hello.
Through pdoTools I display the product catalog

<div class="row">


        </div>

The output template has the following form
<div class="col-md-4">
<article class="animate-box">
  <a href="" class="blog-img text-center" style="background-image: url();">
    <span class="icon"><i class="icon-search2"></i></span>
  </a>
<div class="entry">
  <h2><a href=""></a></h2>
  <p class="meta-2"><span><i class="icon-calendar2"></i> </span></p>
  <p></p>
</div>
</article>
</div>

Since col-md-4 is specified in the markup, we get 3 products per line.
I need to display the directory according to this markup
<div class="row">
  <div class="col-md-4">
  ...					
  </div>
  <div class="col-md-8">
  ...
  </div>
  <div class="col-md-6">
  ...
  </div>
  <div class="col-md-6">
  ...
  </div>

This is how the layout should look like
5def461112327701471915.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
g905, 2019-12-10
@San007

You can try to bind to of each element. Like if 1 - we output col-md-4, if 2 - we output col-md-8 and so on.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question