I just saw this and agree that the content text files can be a bit bloated sometimes:
Maybe we could introduce a new blueprint option, something like this:
fields:
my_field:
label: My field
type: text
keepEmpty: false
where keepEmpty: false
would force the panel to skip fields that are empty.
If it’s not set it should fall back to keepEmpty: true
, just like the way it works now.
Advanced - Maybe a more solid solution
Now not every field is a text field. Maybe we have a toggle and it should skip saving data when it’s false
which is not the same thing as empty.
fields:
my_field:
label: My field
type: text
skip: false
This time around we have a skip
option. It will simply skip the value if it matches the blueprint option. In this case it will not save the value if it’s false
.
In both cases it should not save they key to the value, like the value has never been in the blueprint.
Feedback?