michael / editable-website

A SvelteKit template for building CMS-free editable websites
https://editable.website
MIT License
1.34k stars 103 forks source link

Support for collections #3

Closed LukaHarambasic closed 1 year ago

LukaHarambasic commented 1 year ago

Heyho,

I really love the idea <3

I think it could become my go-to solution for simple websites. Only something popped up: do you support collections (lists, items, or however you wanna call it)?

Use case: I would like to allow the non-technical user to add more testimonials or more team members.

Is something like this already possible or do you plan to support it?

Thanks, Luka

nilskj commented 1 year ago

Hey! I would say this should already be possible but you will need to configure it yourself. As an example regarding testimonials, this functionality is already showcased in the home page where you can add or remove them. It is also possible to change their order, have a look in routes/+page.svelte

michael commented 1 year ago

Hey @LukaHarambasic, @nilskj!

There are really no limits how to model your data. It's just web development. :) I tried to find a good middle ground for the demo to keep things minimal.

I just built a portfolio site and added a projects entity. These behave similar to blog entries, just with different metadata. The testimonials you see on the demo website, are stored as part of page, you can model any JSON data structure, however you may want to create an explicit testimonials database table, so you can do more things, and display them on different pages.

I guess one big reason I created this, is that I'm a bit fed up with one-size-fits-it-all solutions (which I created myself too) as they get bloated and are too opinionated. This may not be a solution for everyone but if you are a good frontend coder this opens up new possibilities for end-user-friendly website management. :)

LukaHarambasic commented 1 year ago

Awesome thank you!