CMS field overrides with _schema.json are really fun yet powerful #266
Replies: 2 comments 7 replies
-
Thanks for the guide @jamestagal! |
Beta Was this translation helpful? Give feedback.
-
Hi @jamestagal and @jimafisk Firstly brilliant project. Great sollution to Git backed CMS and especially previewing. I am a fan of the NetlifyCMS but the Preview templating is a pain in the ***. The NetlifyCMS 'workflow' using branches is very helpful for teams that require reviews. I tried to implement adding new faq items with the bigspring template using CMS field overrides.
I tried to follow @jamestagal example but while not breaking the CMS I could not for the life of me get the 'Add New Faq item' button to surface. My problem I think was where to place all the files especially the _schema.json. I did not follow step 4. I figured the faq.svelte code would work as is. Do either of you have an idea of what would be required to get the result I am after? Regards |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I just wanted to show how you could add a
list
item or aparagraph
to your content when they are defined as components (that aren't part of default content). See screencast of a list item example.Screen.Recording.2023-01-17.at.11.20.07.am.mov
_components
folder create another folder and call ititem
. Then, in the_defaults.json
file there, add a default list item as follows:_schema.json
file in the content when you want this item to be applied in, (in my case it was for thecourses
content) add the field name/s anditem
as the option specifying thetype
as acomponent
.item/s
into an array in your data source, as follows:item
in your html template as follows:Hope that is helpful.
Thanks the guidance on this one @jimafisk
Ben
Beta Was this translation helpful? Give feedback.
All reactions