No revision records are created when using Frontend Editing module

Created on 22 May 2024, 7 months ago
Updated 20 August 2024, 4 months ago

We would love to use the Frontend Editing module for content modifications directly from the frontend theme. However, we have encountered an issue where clicking the 'Save' button does not automatically generate a new revision. This functionality is crucial for maintaining a detailed edit history and facilitating effective content rollback processes.

Could you please advise if there is a simple method to enable the automatic creation of content revisions, including an automatically generated revision log message, when using the Frontend Editing module for content changes? Implementing such a feature would significantly enhance our ability to track and manage content changes efficiently.

We greatly appreciate the convenience provided by the Frontend Editing module and are eager to optimize its functionality for comprehensive revision tracking.

Thank you in advance for your assistance and recommendations.

💬 Support request
Status

Closed: works as designed

Version

1.7

Component

Code

Created by

🇺🇸United States alexi721

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

Comments & Activities

  • Issue created by @alexi721
  • 🇩🇪Germany a.dmitriiev

    Hi, thank you for your feedback. To understand your problem better I would need more details: what entity type are you saving and not getting new revision? Does that entity type supports revisions?

    In most common use case of frontend editing, you edit the paragraphs that are part of node entity type. If your node bundle requires the revision to be created, then every time you save a paragraph, the new revision will be created (this is also a part of functionality that paragraphs_edit → module provides). Check the edit form of your node bundle:

    Do you have that checkbox enabled? (if your problem is with node bundle, of course)

    Frontend editing itself doesn't provide at the moment any instruments to create revisions, it only uses what Drupal core or any other module that provides entity type have. Normally the forms, that are opened in sidebar are taken as they are provided by corresponding entity types. If that form consists of revision fields, that should also be displayed (this needs confirmation, not 100% sure).

    Regarding automated revision log message, that can be a good improvement, but that should be configurable per entity type/bundle. Could be a good feature request.

  • 🇺🇸United States alexi721

    Artem, thank you very much for your detailed reply, which is much appreciated.

    A very common use case for site editors is that they need to make a few text changes on pages that have been created by others.
    The majority of pages are built with various Paragraphs and the 'Frontend Editing' module allows editors to make those changes without having to open the page in Edit mode.

    Unfortunately, even with the 'Create a new revision' checkbox checked on the node level, saving content changes (as shown above) of a Paragraph types using the 'Frontend Editing' module won't create a new revision.

    Let me know if you need any additional clarification. Thank you so much.

  • 🇩🇪Germany a.dmitriiev

    Here is screen recording of proof that revision for node is created, when paragraph is saved. Could you please do the same video? This will help to understand the problem better.

  • 🇺🇸United States alexi721

    Artem, thank you very much for uploading your video. At around 4:11 I see a new revision was created under Revisions tab.

    Anyway, I added my screen recording ' Screen Recording 2024-06-02 at 8.39.40 PM.mov → ' and here are some comments:
    0:07 - Proof that 'page' content type has the 'Create new revision' checkbox marked.
    0:21 - Last revision was created on 6/1/24 at 17:43
    0:30 - Editing the 'Section Title' field
    0:37 - Section Title is changed on frontend
    0:50 - Last revision is still set to 6/1/24 at 17:43

    Are you sure on your end was no other functionality added i.e. via the ECA module?

    At 4:11 of your video the revision log message is 'Shorten text'. Where is this text coming from?
    Maybe it was created with a 'rule' via ECA or another script?

    Thanks again for your continued support,
    Alex

  • 🇩🇪Germany a.dmitriiev

    No, there are no ECA module installed, and as far as I know no other module that manages revisions. The text "Shorten text" is the revision log message of previous revisions, I guess Drupal adds the message of the previous revision, if none is provided.

  • 🇩🇪Germany a.dmitriiev

    Are you using the standard paragraphs widget, or maybe you paragraphs are added with help of Layout builder or any other tool?

  • 🇮🇳India Tirupati_Singh

    Hi @alexi721, I tried replicating the above issue but the issue didn't got any issue for revision not created. After editing node using Frontend Editing module Edit option, the revision for changes is being created. The revision is being created when the node is being edited only when the Create new revision option is Checked for the Entity.

  • Status changed to Closed: works as designed 4 months ago
Production build 0.71.5 2024