statamic / ideas

💡Discussions on ideas and feature requests for Statamic
https://statamic.dev
31 stars 1 forks source link

Bard and Replicator - default block combination for new entries #964

Open wturrell opened 1 year ago

wturrell commented 1 year ago

At the moment, every Bard field in a new entry starts with a blank text area and no other blocks. For Replicator, the fields are completely empty.

I'd like the ability to add a default combinations of sets, e.g. for news items, a Bard field would be prefilled with the typical outline of an article. So you might have markdown or text for the lead paragraph, then a set for photos holding Assets and a caption, then an area for body text, a pull quote, a newsletter signup midway through, maybe a field to link to related articles, and so on.

Aims: save a little time when creating multiple entries, make it a bit easier for inexperienced users, allow you to hint to others how you want your content to be structured

jackmcdade commented 1 year ago

This is exactly what Starter Kits are designed for 😊

If there are defaults you want on every site, set it up the way you'd want to start a site and export a kit from it, then you can use that kit to spin up new sites anytime you want.

wturrell commented 1 year ago

@jackmcdade sorry - what I meant was not initially designing the sets, but supporting a default value for Bard/Replicator fields so they can include any combination of pre-selected empty sets. When you create an entry, you'd see something like this:

bard-prefilled

rather than this, where the user has to click + multiple times:

bard-empty

I realise the UI for it may be too hard.

I also note if I supply a plain text value for "default" in the blueprint YAML file, Bard fields will render it, so maybe even support for plaintext Bard defaults for the editor (no sets) would be useful to some people.

jackmcdade commented 1 year ago

Ah okay I see what you're saying. I'll reopen :)