Is it possible to store liquid and content blocks inside catalogs?
Hi all
Recently we tried putting a section of liquid + text inside a catalog item but it only rendered as text. I then put it inside a content block and it seemed to render for the first item but if I had two items the second one didn't render. I'm not sure if I'm missing some tricks or it's not possible but I'm currently having issues getting it to render reliably each time.
The longer end goal is to render a series of emails based on user paths but use catalogs as the single source of truth for content and avoid going in and out of a canvas. I know I can build the emails with HTML in the canvas and pull in the copy, that works good. Was just testing if I can pull in entire sections of code as well.
'Is it possible to store liquid and content blocks inside catalogs? ' Not in the way you have described.
If you wish to use a Catalog (so you can update 'items' (cells) with a CSV or via Catalog API or CDI) to control the content that is displayed to a user, I would recommend the following approach:
Create a Catalog (e.g. 'Catalog-SSOT') and add a 'field' (column) name for each of the content areas of your email (e.g. header_img, header_cta etc).
Create a Content Block for each corresponding content areas of the email (e.g. header_img-content_block, header_cta-content_block etc)
Within these content blocks, store the different content versions and add liquid, eg:
This is a really clever way to manage this process Stuart! So the liquid is stored and running inside the content block, not the catalog, but the catalog determines output of that liquid. Nice. π