Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix: UFM alias prefixes #2510

Merged
merged 6 commits into from
Nov 4, 2024
Merged

Conversation

leekelleher
Copy link
Member

Description

Following internal review and feedback, the single character marker prefixes can be confusing. For established syntax like outputting a raw value or using a localization key, the respected marker prefixes = and # are intuitive, however with the new UFM Content Name component, the chose marker prefix is ~, which is not established and counter intuitive.

To aid discovery, the use of a UFM component alias will be encouraged, e.g. {umbContentName: propertyAlias}

The ~ marker prefix will still work and be supported in v15, but set to be deprecated in a future release, the umbContentName alias prefix will be used going forwards.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

How to test?

First, test that the existing UFM syntaxes still work as expected. Then test that the "umbContentName" alias prefix works in various places, e.g. Block List, Collection Views, property descriptions.

e.g. `{(alias:|marker)(text)}` would be `{umbContentName: propertyAlias}` or `{~propertyAlias}`
The `~` prefix will be deprecated in a future major release.
@leekelleher leekelleher merged commit 1ad5b99 into release/15.0 Nov 4, 2024
8 checks passed
@leekelleher leekelleher deleted the v15/hotfix/ufm-alias-prefix branch November 4, 2024 13:28
nielslyngsoe pushed a commit that referenced this pull request Nov 4, 2024
* Adds `alias` to UFM component registrations

* Adds support for `alias` prefix in UFM syntax

e.g. `{(alias:|marker)(text)}` would be `{umbContentName: propertyAlias}` or `{~propertyAlias}`

* UFM Content Name: adds warning for using the `~` prefix marker

The `~` prefix will be deprecated in a future major release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants