Problem/Motivation

Thanks for creating a module!

I read the project page, and wonder what the difference is between Field Default Values (set_field_defaults) and the existing https://www.drupal.org/project/field_defaults/ (field_defaults)?

Because they look fairly similar ... If there is a big overlap, perhaps it's better to join forces?

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#3 2-new-field.png83.86 KBressa
#3 1-set-default-field-value.png52.78 KBressa

Comments

ressa created an issue. See original summary.

keshav patel’s picture

Hello @ressa,

The module Field Defaults can be used when:
> When creating a new field or updating an existing field.
> What it does is, when we add / update any fields configuration [for that particular entity type bundle, eg: Article]. It allows us to update or preserve all the existing content for that field for that particular bundle.
> We can consider this module as an assistant to Bulk Operations on field values per bundle.

What the Field Default Values module provides is:
> It gives us the configuration form (/admin/config/field-defaults), which allows us to set the default values for some majorly used field types. such as Text fields, Number fields, Email etc.
> Whenever we create a new field on any entity type, on any entity bundle.. It automatically checks the "Set default value" checkbox and pulls the default value from our saved configs for that field type.
> Means, just the one time process saves our time to fill default values.., whenever we plan to create the field of particular field type at any place over the entire site.
> Note: It works only when we create a new field.

ressa’s picture

Category: Task » Support request
StatusFileSize
new52.78 KB
new83.86 KB

Thanks, I get it now -- also after re-reading the project page a bit more attentively :)

Maybe you could consider showing two images of how it works. First, defining the default value for a field, and then showing the result, when you are creating a field of that type? I think then I would have understood how it works faster.

Maybe include something like this on the project page?

Set default value for "Text (plain)" field types:

Set default field value

Default value already set, when creating a new field of type "Text (plain)":

Value set automatically

ressa’s picture

PS. Maybe add Drupal 11 support in *.info.yml? It seems to work fine ...

keshav patel’s picture

Thanks for the suggestions.

I've added the illustrative screenshots and added a new release with Drupal-11 support.

Check here: https://www.drupal.org/project/set_field_defaults

ressa’s picture

Status: Active » Reviewed & tested by the community

Thanks @keshav patel, it's very clear now, how the module works. And great that there's also Drupal 11 support.

Perhaps, as a final touch, you could consider setting 1.0.x as the default branch in the GitLab repo, since that's where development takes place?

keshav patel’s picture

Status: Reviewed & tested by the community » Fixed

Done, thanks!
Closing this issue.

ressa’s picture

Beautiful, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.