Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
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?
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.
Thanks for the reply! I ended up just building out a custom section that the merchant can edit in the customizer instead.