A
A
artr_lr2017-03-03 21:12:56
MODX
artr_lr, 2017-03-03 21:12:56

Is it possible to make a condition in migxLoopCollection?

<ul>
  
</ul>

Let's say I display records like this, they are displayed perfectly. But if there are no records according to the where clause, then nothing is displayed at all! I tried to catch the value in the CustomTpl chunk, set the condition that if more than 0, then display the elements through another chunk, if it is 0, then display the inscription, but as I understand it, nothing is transferred to the chunk if no data is received from migxdb , i.e. this total needs to be caught somehow in the main template and somehow the condition is set there ... Tell me, please, how can this be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
artr_lr, 2017-03-03
@artr_lr

The problem has been solved!
If anyone encounters a similar, then the solution is

<ul>
  
</ul>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question