Problem/Motivation

When exporting content to markdown, the front matter entity block did not include the created and changed timestamps. These are standard entity properties that tools (including LLMs) rely on to understand when content was authored or last updated.

The initial entity_properties config introduced in content_first_update_20001() only covered id, type, bundle, status, and langcode.

Proposed resolution

Add created and changed as configurable entity properties:

  • Expose them as checkboxes in the Entity properties section of the Content First settings form.
  • In ContentFirstBuilder, read the created value via $entity->get('created')->value and the changed value via $entity->getChangedTime() (using EntityChangedInterface).
  • Add a post-update function content_first_update_20002() to enable both properties for existing installations.

Remaining tasks

  • Review and merge.

User interface changes

The Entity properties details element in the Content First settings form gains two new checkboxes: Created date (created) and Changed date (changed). Both are enabled by default

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

gedur created an issue. See original summary.

  • gedur committed ecd8649a on 2.x
    Issue #3588921: Add created and changed entity properties to markdown...
gedur’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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