Add UI for selecting from multiple pattern options (if they exist) for auto-generation

Created on 12 January 2022, almost 3 years ago
Updated 9 February 2023, almost 2 years ago

Problem/Motivation

Currently, it is possible to create multiple path alias patterns that can potentially match a particular entity type. It would be useful to allow a user to select from those multiple options (if they exist) when a path alias is going to be auto-generated. The selection widget could default to the pattern that currently would automatically be selected, so the default behavior wouldn't have to change.

Proposed resolution

If there are multiple matching path alias patterns for a given entity type, add a select drop-down widget that containing each matching option and defaulted to select the lowest weight matching option.

Remaining tasks

TBD

User interface changes

Select drop-down widget added under "Generate automatic URL alias".

Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

🇺🇸United States pyrello

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Issue was unassigned.
  • Status changed to Needs review almost 2 years ago
  • 🇧🇷Brazil diegors Campinas - Brazil

    Fixed the tests and some coding standard errors in test file.

    Still need review.

  • 🇮🇳India Rinku Jacob 13 Kerala

    I have reviewed the merge request for drupal version 9.5.x. I can see dropdown widget after appying the MR. Adding screenshots for the references.
    Need +1 RTBC

  • 🇪🇸Spain dtamajon

    Hi, I'm interested in that feature but trying to figure out how to add custom conditions from a custom module, as I need to add conditions based on my custom fields.

    Do I have to follow some base class as in Rules module?

Production build 0.71.5 2024