P
P
PavelScron2017-03-02 18:16:07
CMS
PavelScron, 2017-03-02 18:16:07

Modx gallery - how to make a button to view all photos?

I can’t figure out how to add a button to show all photos or show more, which would open the same slideshow as opens when you click on the photo.
chunk from page

<div id="porta481521"></div>
<div class="row porta" id="portas481521" style="height:535px;">
  <div class="row">
    <h2 style="padding-left: 15px;"></h2>
    
    <div class="col-md-3">
      
    </div>
  </div>
  <div class="row">
    <ul></ul>
  </div>

</div>

album chunk portaThumb
<li>
    <a href="" class="colorboxes" rel="" data-target=""><img src="" alt="" class="img-responsive lazy" data-img=""/></a>
</li>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Kit, 2017-03-02
@ShadowOfCasper

This chunk - what you copied - is 1 portfolio item. To load more columns using ajax, I would use pdoPage if I were you.
https://docs.modx.pro/components/pdotools/snippets...
Check out the options section. It is also possible to install pagination as an alternative.
UPD In the markup, you generally have some kind of trash. Check chunk output.
47d6c2a20d2a47a7a784a4abc3401099.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question