Better Documentation

Created on 25 December 2023, 11 months ago

Problem/Motivation

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?

Proposed resolution

I want to help complete the documentation; please give me a guide to help me understand how this module works.

💬 Support request
Status

Active

Version

1.0

Component

Documentation

Created by

🇹🇼Taiwan gloomcheng

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024