What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: Sort / Group Product Metafields

Solved

Sort / Group Product Metafields

iambrianclark
Shopify Partner
21 3 13

Is there any way to group (other than namespace) or sort product metafields after adding them in the new definition settings?

For instance, I have a new product page template that includes metafields for things like slider sections, features lists, etc. It appears metafields appear on the product pages as newest created first, but if I create a new section on the template and want to maintain the order of metafields on the product page (first items on the page are first in the metafield list, for example).

Is there any way to adjust this?

Accepted Solution (1)

eballeste1
Excursionist
23 4 17

This is an accepted solution.

I hope this is something they flesh out further down their development road but for now your best bet would be to manage metafields via a 3rd party app like Advanced Custom Fields or Airfields that have better ways to organize your fields.  

View solution in original post

Replies 3 (3)

iambrianclark
Shopify Partner
21 3 13

I've still not figured out a solution to this, but I do have an additional question:

I have metafields that aren't allowed to be dynamically linked because they're multi-line text. I see that there's a link to change the text style (or maybe the metafield type) but it's greyed out. Is there any way to change this without having to delete and recreate the field and completely messing up my sorting order?

eballeste1
Excursionist
23 4 17

This is an accepted solution.

I hope this is something they flesh out further down their development road but for now your best bet would be to manage metafields via a 3rd party app like Advanced Custom Fields or Airfields that have better ways to organize your fields.  

iambrianclark
Shopify Partner
21 3 13

@eballeste1 thanks for the recommendations.

Do you know if you can create definitions for metafields created through those apps? I've used Superfields and they weren't added to the "Metafields without a definition" tab, so I wasn't able to create a definition and use them dynamically.