Sorry, we don't support your browser.  Install a modern browser
This post is closed.

Conditional toggle to display section only if dynamic content is available#296

M

Is it possible to have a toggle in the theme editor to only display a section if dynamic content is available?

I have several uses for metaobjects, such as Brands/brand story, which I want to build into our product templates, but only on condition that Brand entries are assigned to respective products. Currently, the section returns placeholder data when a product has no assigned metaobject. It’s a real pickle for me!

2 years ago

Hi there, for this style of ‘batched’ conditional sections, we recommend making use of a separate template for products that need a different layout. For assistance with getting those set up, please don’t hesitate to reach out to our support team.

Thank you!

2 years ago
Locked this conversation
2 years ago
Changed the status to
Archived
2 years ago