Cannot override default Save button text

Created on 22 March 2025, 12 days ago

Allows you to customize the text for "Save & Edit", "Save & Publish", AND the default Drupal node "Save" button to whatever you like

This option is not found anywhere, neither on the module settings page (only the Save & Edit button text can be specified there), nor on the content type settings page.

πŸ› Bug report
Status

Active

Version

1.8

Component

User interface

Created by

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

Merge Requests

Comments & Activities

  • Issue created by @tetatu
  • Hi,I tested this on Drupal 11 with Save & Edit 1.8, and it works as expected. Here’s how you can enable and use it properly:
    Steps to Enable & Configure:

    1) Install & Enable the Module:
    composer require 'drupal/save_edit:^1.8'
    drush en save_edit -y
    drush cache:rebuild

    2)Go to Configuration Page:
    Navigate to Configuration β†’ Content Authoring β†’ Save & Edit
    (URL: /admin/config/content/save_and_edit)

    Here, you can rename the Save & Edit button to your preferred text.
    Important: Check if you have enabled Save & Edit for the specific content type in the settings.

    3)Using the Buttons in Content Edit:
    Go to Content β†’ Add or Edit any node.
    After clicking Preview, you will see:
    Save & Edit
    Save
    Preview

    Back to Content Edit (when returning from preview mode).

    Clicking Save & Edit saves the content and keeps you on the edit page.

    If You Don't See the Buttons:
    -----------------------------------------
    Ensure the module is enabled.

    Verify that Save & Edit is enabled for your content type in the module settings.

    Clear the cache (drush cache:rebuild).

  • only the Save & Edit button text can be specified there

    Drupal 10.4.5.

  • πŸ‡ΊπŸ‡ΈUnited States caesius

    @haritha As tetatu said, the ability to edit the default Save button text is not present.

    It looks like this feature was present in the Drupal 7 version of the module and either never made it to the Drupal 8+ version or was rendered non-functional after Drupal moved away from using the "drop button" (see πŸ“Œ Remove Dropbutton support to resolve theming issues Fixed )

    Either way, I'm going to determine that this is a minor enough oversight in the D7 to D8 module upgrade that reinstating it will be considered a "feature request." Contributions are welcome.

    I'll be removing the text regarding the default Save button from the project page.

  • πŸ‡ΊπŸ‡ΈUnited States caesius
  • πŸ‡ΊπŸ‡ΈUnited States caesius
  • I’ve fixed this issue by allowing the default "Save" button text to be overridden.
    The fix is available in the branch [3514815-allow-override-of](https://git.drupalcode.org/issue/save_edit-3514815/-/tree/3514815-allow-...). Tested on Drupal 10. Please review!

  • I'll try it when it's included in the version after 8.x-1.8, I can update it with Composer, I don't know how to do this Git thing.

Production build 0.71.5 2024