Change name based on workflow

Created on 6 February 2024, 10 months ago
Updated 14 April 2024, 7 months ago

First let me say this is a great module. Thank you.

I use this module for not just content moderation but other types of workflow. For example I have a Contract Management workflow with states of Active, Inactive and Expired. I use this module to send an email based on a scheduled date that transitions the state. I would like to be able to name the Scheduled Transitions tab to something more intuitive for this workflow like Expiration Notification.

For a different workflow the tab name might be something else more applicable to that workflow etc.

This module is flexible enough I believe it would be a significant improvement.

πŸ’¬ Support request
Status

Closed: works as designed

Version

2.4

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States guymandude

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

Comments & Activities

  • Issue created by @guymandude
  • Status changed to Closed: works as designed 7 months ago
  • πŸ‡¦πŸ‡ΊAustralia dpi Perth, Australia

    The typical way to change labels would be to use translation.

    Install locale.module, and create a translation for your language. You can create an override for English.

    Or if you want a low code solution, something like

    In settings.php

    $settings['locale_custom_strings_en'][''] = [
      'Scheduled transitions' => 'Something else',
    

    Where 'en' is the language you want to override.

    If it needs to be conditional on contexts, you'd want to look into core hooks/alters. Or even extending/overriding \Drupal\scheduled_transitions\Plugin\Menu\LocalTask\ScheduledTransitionsLocalTask somehow.

Production build 0.71.5 2024