A bit of a theoretical question (so no project link yet), but any advice would be really appreciated.
Looking to create a blog where we can add a promo area, with a few options to select from (each promotions a different area eg newsletter signup/info page).
My plan was for each post to contain two rich media areas, with the template page including a promo section in between.
In the CMS there will be an option field to choose either:
No promo
Promo 1
Promo 2
And the promos will have a conditional visibility based on this field.
The client has now asked about making the promo area an on/off toggle, that loads a random promo option.
Does anyone have any thoughts how I could make an areas visibility conditional, with multiple options that load at random within it?
Yes exactly thaf. The only thing is that in the promo area you need to add a collection wrapper connected to the promo collections and limit that collection to show just one.
Originally I was thinking the promos might be a bit different visually (eg one text only, centrally aligned and button, and a second with an image and left aligned text). I think I might have to simplify them to follow the same layout to work as a collection?
Where the promo collection has a field to select a layout option. And the promo design has a couple of layouts within it, each with a visibility trigger. Or am I overcomplicating it and there’s an easier route?