Auto-update Timestamp Fields in Paragraph Component

Created on 23 December 2024, 28 days ago

Issue Description:

Currently, when a paragraph component includes a timestamp field, this field does not automatically update to reflect the current date and time upon creation or modification of the paragraph. We need to implement functionality where:

Any timestamp field within a paragraph component automatically updates to the current timestamp whenever:
The paragraph is created.
The paragraph content is saved/updated.

Steps to Reproduce:

  • Add a paragraph component to a content type.
  • Include a timestamp field in the paragraph.
  • Save the paragraph initially and then edit it again after some time to check if the timestamp updates automatically.

Expected Result:

The timestamp field should reflect the current date and time each time the paragraph is saved or updated.

Suggested Solution:

Implement a custom module or adjust existing code to hook into the paragraph save/update events and update the timestamp field with REQUEST_TIME or similar Drupal time functions.

Feature request
Status

Active

Version

1.18

Component

Code

Created by

🇮🇳India gowtham-unimity

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

Comments & Activities

Production build 0.71.5 2024