primocms / primo

Primo is a visual CMS with a built-in code editor, Svelte blocks, and static site generator.
https://primocms.org
MIT License
1.92k stars 474 forks source link

Conditional fields #383

Open bashpro opened 3 months ago

bashpro commented 3 months ago

It would be awesome if the fields section got 2 features that could add to Primo's experience, as the title states having draggable fields to replace the system of 3 dot menu > move up, after creating multiple fields its difficult to track when needs moving around and keeping track of the fields you move up and down, slows the whole process of making a component!

The 2nd feature is conditional fields, so if a user is prompted with a select field, depending on what they select will show the corresponding fields they can use and hide all the other fields. for the developer they can set if conditionals on group fields based off of select fields, that way we can control what the user needs to see when they're changing content, they get the fields corresponding to their selected field

mateomorris commented 2 months ago

Made a separate issue for the draggable fields: https://github.com/primocms/primo/issues/386