I’m trying to use a metafield to assign different size charts to different products using size chart pages. What I’d like to do is build my pages with a common URL structure and then reference the pages via a metafield that contains a unique identifier for the pages. Here’s the code that I kind of Frankensteined together, but it’s not working correctly. I’m thinking the issue is the curly braces inside the render tag, but I’m not sure what I should be using instead here.
{%- render
'tool-tip-trigger',
title: size_chart_title,
content: pages.size-chart-{{ product.metafields.my_fields.size_chart_blank | metafield_text }}.content,
context: 'size-chart'
-%}