'Shopify liquid - Load Section & Page Data From Separate File?

I have a client for whom I built a custom FAQ section (thumbnails, animations, etc.) and included it in the Default Product layout (product.json) and it's own custom FAQ page template (page.faq.json). He would like edits he makes on one to be replicated on the other, but naturally they save any entered data to their own files. Is there a way to have the default product and page template write to- and read from a separate file so the data between them can stay in sync? A "single source of truth" option?



Solution 1:[1]

Use a Metafield resource. The Merchant can edit it easily, and you can use it in more than one place. The oldest trick in the book. They can be text or JSON too. Lots of freedom there.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 David Lazar