4.3 slider no longer working on front end with looper/global block combo

Hi @alexander
This was working on previous betas, but since the live version the front end is not showing any content on the front end (but shows perfectly in the builder)

I suspect it is because the provider in on the page (on the grid), and the consumer in in the global block (in the slider). This used to work but doesn’t work now.

Is this something that can be fixed or worked around?

url and login details below

Hi @scotbaston,

I’ve been looking at this and I really wish I had a near term solution to offer here. Unfortunately, the only thing I can suggest right now is moving the Looper Providers into the Global Blocks.

The problem is that I didn’t anticipate loopers being used like this, and so while it may have worked somehow for a time, it wasn’t actually meant to… What should actually be happening here is Global Blocks (and Content Builder items when called inside the Layout Builder) should begin a fresh context and have no awareness of the parent. That’s closer to what is happening now, but there is still some state management going awry and it’s not fully cleaned up (you can still get to some Dynamic Content items).

I’m sorry, I’m sure this isn’t the news you were hoping for. I’ve been looking at it for a bit now and I don’t have a safe way to get the former “functionality” back without breaking something else, and I would actually prefer long term to not support a Looper Provider and Consumer relationship to break the boundary being in separate builder content.

What we really need here is Global Elements that keep their content and styling, but can be fully managed directly inside the builder you’re in rather than being managed in a separate builder. This is something we’ll be exploring after responsive styling is complete.

2 Likes

Hi @alexander,

Thanks for the detailed feedback.

The global blocks in this instance was a bit of a fudge anyway in that I would prefer to have used the parent slider as buildable content with a looper. That way everything would be within the parent page.

Do you think sliders with buildable content is likely to happen anytime soon?

in the meantime, I think you are right to suggest provider within the global block, its ugly but it could work. 3 global blocks each with a provider/consumer, consuming 1 entry but with each global block offset by a different amount.

Thanks for the feedback. As you say, not the news I was hoping for… but I work with what I have, not what I wish it was :wink:

Thanks for understanding.

I don’t know where it fits into the development timeline yet but it is one of our higher priority items after responsive styling is complete.

1 Like

No problem,

I got the slider working with 3 global blocks offset as I mentioned, so at least this functionality works until the sliders functionality makes it live

Thanks again

Sounds good!