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 thecreatedvalue via$entity->get('created')->valueand thechangedvalue via$entity->getChangedTime()(usingEntityChangedInterface). - 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
Issue fork content_first-3588921
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
Comment #4
gedur commented