theme-tools icon indicating copy to clipboard operation
theme-tools copied to clipboard

Support `content_for` block `closest.metaobject` param completion

Open aswamy opened this issue 10 months ago • 0 comments

Is your feature request related to a problem? Please describe.

This feature was generated by this comment.

Describe the solution you'd like

Most context.* params are static. However, metaobjects are dynamically defined on the shop-level. When you want to auto-complete that param, you must first fetch metaobjects from the shop.

{% content_for "block", id: 5, context.metaobject.foo█ %}  -> `foobar`

NOTE: This will require metaobject completion before starting this ticket.

Checklist

  • [x] I have checked and made sure that the proposal adheres to this plugin's principles

aswamy avatar Feb 10 '25 21:02 aswamy