Only show custom metafield fields on a specific page's editor, hide on all others?

TothDigital
Shopify Partner
22 1 7

I need to add a custom metafield to a single page in my store so the merchant can add, edit and remove links from a list. I have set up metaobjects for the links and want to connect them to a page metafield that only displays on the one page's editor (back end), but the metafield shows on all pages' editors which is confusing to the merchant and her employees. I know I could just leave the links as metaobjects and call them in a separate page template, but I want them to be available in the page editor for context and simplicity.

 

How can I restrict a custom page metafield to only display its fields in the editor for one, specific page?

Replies 2 (2)

Jason
Shopify Expert
11196 226 2287

You don't have that kind of control to limit when a definition appears to a subset of pages. If this really is just a list of links, and only used on the one page this could just be handled with a linklist (menu) instead. I realise this idea give you a disconnection between the page and editing the list but if the problem of having fields appear where you don't want them perhaps it's a valid alternative. Menus are still easy to edit at least.

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★
TothDigital
Shopify Partner
22 1 7

Thanks for the reply! I ended up just building out a custom section that the merchant can edit in the customizer instead.