- Issue created by @gloomcheng
This is an awesome module for developers; I really love it.
However, I faced two issues with using this module in my custom module:
1. Do not auto-create fields on module enabled
I tried to create a file named field_create.node.settings.yml, and the content is below
date:
name: date
label: Calendar Date
type: datetime
force: true
required: true
bundles:
calendar:
label: Calendar Date
It would not auto-create this field on the Calendar node type (I also created a node.type.calendar.yml file to auto-create node type)
2. Manual create fields error
If I ran the field created manually, it returned the error message below
TypeError: Exception::__construct(): Argument #2 ($code) must be of type int, array given in Exception->__construct() (line 115 of modules/contrib/field_create/src/FieldCreateManager.php).
Does it might be caused by type: datetime
?
I want to help complete the documentation; please give me a guide to help me understand how this module works.
Active
1.0
Documentation