Get Data of Metafield Object from slug

Topic summary

A developer is attempting to dynamically retrieve and display metaobject data on a custom Shopify page (URL: /pages/salt/salt-x) using Liquid code but is encountering difficulties.

Current Issue:

  • The user has created a metaobject in Shopify (visible in screenshots) but cannot successfully output its data on the page.
  • They’ve attempted using shop.metaobjects[request.path] to access product data and iterate through it, but the implementation isn’t working.

Guidance Provided:

  • A responder explained how to assign theme templates to metaobjects through the CMS admin and theme customizer.
  • Two approaches were suggested: using the theme customizer to connect sections to metafields, or creating custom sections with direct HTML/CSS/Liquid editing.
  • Screenshots demonstrate the metaobject admin interface and template creation workflow.

Outstanding Questions:

  • The exact relationship between the “salt x” metaobject and products needs clarification.
  • What specific data structure is being looped through (products vs. metaobjects)?
  • The use case and desired layout remain unclear.

The discussion is ongoing, awaiting more specific details about the data structure and intended implementation.

Summarized with AI on November 8. AI used: claude-sonnet-4-5-20250929.

What is the relationship between the custom meta object “salt x” and products on your site?

What are you trying to loop through? Eg products or metaobjects?