M
M
Mark Manuilov2020-06-18 08:45:44
MODX
Mark Manuilov, 2020-06-18 08:45:44

How to hide html block in MODX if there are no neighbors of the same parent?

There is a block

<section class="products">
          <div class="cont">
            <div class="data">
              <div class="block_head">
                <div class="title">Другие серии</div>
                <a href="/" class="all_link link transition">
                  Смотреть все
                  <div class="hover"></div>
                </a>
              </div>
              <div class="flex">
                
              </div>
            </div>
          </div>
        </section>


pdoResources displays neighboring resources, but how to make sure that if there are no neighboring resources, then the block is completely hidden?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor, 2020-06-25
@ig0r74

&tplWrapper Chunk wrapper to wrap all results. Understands one placeholder: .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question