Automatically convert content field values to URL-compatible strings when creating a URL-mapped content URL #31491
Labels
dotCMS : Content Management
Epic
OKR : Core Features
Owned by Will
OKR : Technical User Experience
Owned by Freddy
Team : Falcon
Type : New Functionality
Parent Issue
No response
User Story
As a content architect, I want to be able to create a URL Pattern field without creating a separate URL Title field, so I can easily manage my URL-mapped content without relying on Velocity code.
Description
Currently, the URL Pattern field allows you to add the values of fields in the content type to generate the URL that the URL-mapped content will use. However, the URL Pattern takes the values from the fields literally, without making sure that they contain values compatible with URLs. So, almost all customers which use URL mapped content use a URL Title custom field which converts the value of some other field(s) (such as the Title field) into a URL-compatible string, and then they place the value of the URL Title field into the URL Pattern instead of placing the Title field into the URL Pattern directly.
We will change the behavior of the URL Pattern field, so the field values in it are automatically converted into URL-compatible values. This will allow customers to remove URL Title fields from their content and replace patterns that currently look like this:
with patterns that look like this:
Core Requirements
The way this conversion is done depends on the type of field put into the URL Pattern:
URLTitle.vtl
code.Additional Requirements:
Out of Scope:
Acceptance Criteria
This is a Title
this-is-a-title
This is line 1
This is line 2
this-is-line-1
<h1>This is line 1</h1>
<p>This is line 2</p>
this-is-line-1
key1|Value 1
key2|Value 2
key3|Value 3
Value 2
selectedkey2
key1|Value 1
key2|Value 2
key3|Value 3
Value 1
andValue 3
selectedkey1-key3
[This is tag 1] [This is tag 2]
this-is-tag-1-this-is-tag-2
Category 1
,Category 3
andCategory 5
are selectedcat1
, Category 3 has a key ofcat3
and Category 5 has no key assignedcat1-cat3-category-5
dotcms-logo-large-high-res.jpg
dotcms-logo-large-high-res-jpg
20230106160321
Proposed Objective
User Experience
Proposed Priority
Priority 3 - Average
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
https://dotcms.slack.com/archives/CQMHM7PNJ/p1740067609847969
Assumptions & Initiation Needs
This epic should be broken down into vertical slices based on the types of fields supported.
Quality Assurance Notes & Workarounds
No response
Sub-Tasks & Estimates
No response
The text was updated successfully, but these errors were encountered: