Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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.
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024