Skip to content

Allow Dynamic Variables to be appended to URL titles, to ensure URL Titles are unique. #2645

Closed
@andy-moogaloo

Description

@andy-moogaloo

Is your feature request related to a problem? Please describe.
When creating a new entry, if the Title, and therefore URL title already exists, it asks the user to amend the URL title to make it unique, something we shouldn't be expecting non-techy clients (who don't understand "websafe") to be doing.
For some projects this is annoying, eg where multiple events with the same title (eg "Aberdeen Meet-Up") exists on a weekly basis. The {exp:channel:forms} allows us to dynamically generate a URL title using othe values, eg dynamic_title="{title}-{custom_field}-{current_time}" - it would be really helpful if the CP would allow us to do this too.

Describe the solution you'd like
Allow, within the channel settings, the option to use variables such as {entry_id}, {current_time}, or any {custom_field} to be added to the start / end of the URL title, as a way to ensure URL Titles are always unique, without requiring clients to go amending these.

Describe alternatives you've considered
A checkbox that appends a random string to the URL title, perhaps if it already exists, or othewise by default.

Teachability, Documentation, Adoption, Migration Strategy
In the directions for Edit Channel > Settings > Defaults, add an additional field for URL title suffix, with directions to cover:
URL title suffix assigned to all new entries in this channel. Dynamic variables {current_time} or {entry_id} are also available, eg -{current_time format="%d-%Y"}

  • I am capable and would like to work on implementation of this feature if it is considered.
    I can't write PHP I'm afraid, but more than happy to test it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions