Open notramo opened 1 year ago
You can create global content that's used on every page, but the downside is currently Plenti will create an endpoint to it until we resolve:
For now though, if you're ok with having routes for your global content, you could:
plenti new type company_info --single
content/company_info.json
file that was created:layouts/global/html.svelte
) using the magic allContent
prop:layouts/content/company_info.svelte
Note: Everything above is pseudo code that I haven't tested, so you might have to correct errors here and there. Just let me know if it gives you trouble!
Is it possible to edit a JSON using CMS, which contains data that should be available on every page? E.g.
html.svelte
contains a footer, with information about the company (phone, email, etc). It should be possible to change this from the CMS. It is displayed on every page, so it's not appropriate to put it incontent/
. Is there an existing feature that can be used to accomplish this?