Issue with conditional output

Hi,

I am facing a strange case so I need your input on figuring out the possible fix.

In the Events CPT card I have a conditional button which whows up if at least one doc is uploaded to that particular post. In some cases, it shows up only if more than three cards are in the output based on filters selected. But probably that is the wrong conclusion. The selection of other filters may have an influence on that as well but I am not sure why and how they relate.

I will provide credentials and links in the secure note.

Hello John,

Thanks for writing in!

I checked the actual country archive page, and it displays as expected.
Kindly check the secure note below.

I am guessing that broken Loopers cause the issue. For example, in your layout, the whole Event Grid is already a Looper Consumer. There is no need to turn your Text element into a Looper Consumer.
image

Every time you enable the element as a Looper Consumer, it will consume data, which, down the line, creates issues. I also noticed that your Russian Regions is a Looper Provider but no designated Looper Consumer.
image

I also noticed that your Weight Category is a Looper Provider:
image

And yet, Sport Sambo is also a looper provider.
image

The correct use of Looper Provider/Consumers:

  • Looper Provider must have a consumer
  • Do not nest a Looper Provider inside a Looper Provider.
  • Nest a Looper Provider inside a Looper Consumer

I recommend correcting the Looper Structure first, as it becomes more complicated when Filtering is applied to the layout.

Thanks.

@ruenel,

Thanks for pointing this out. There were some omissions with looper providers and consumers after numerous variations for that archive. It seams like now they are all fixed. However, from my side the issue still persists. I provide a screencast in the secure note to demonstrate what I see.

I guess I have found the aspects needed in my missconfiguration. Please hold on with further investigation of the case till I check everything and come back to report if the issue still persists.

Hello @referee,

Of course. Please take your time to check everything. We’ll hold off on further investigation for now.

Thanks

Guys, this ticket can be closed. The final solution was to disable my document button looper and rewrite the conditions for showing and hiding the button based on that. It was not smart to use looper as a definer if any documents are uploaded. I am sorry for bothering you this time with my misconception.

Hello John,

Thanks for the update! I’m glad you were able to identify the cause and get it resolved. We appreciate you letting us know the final solution.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.