Token format for ordinal number format?

Created on 3 September 2023, about 1 year ago

Hello --

I have a content type for Textbooks that uses a number integer field displayed as ordinal for edition (e.g. 1 => 1st edition).

Based on the provided token:

[node:field_number_lim_1_1-formatted:?:number_formatter:?]

and help text of:

Number Formatter formatter. Replace '?' with formatter settings in the following format: 'SETTING-VALUE:SETTING-VALUE-...'. Available settings: style, currency, lang_select

I've tried using the below token;

[node:field_number_lim_1_1-formatted:0:number_formatter:ordinal]

but it is only returning the integer (e.g. 1)

I've also tried

[node:field_number_lim_1_1-formatted:0:number_formatter:style]
[node:field_number_lim_1_1-formatted:0:number_formatter:style:ordinal]

with no success.

Is this use case supported? If so, I'd appreciate any guidance on how to pull the ordinal (e.g. 1st) value through via token.

Thanks!

πŸ’¬ Support request
Status

Active

Version

2.0

Component

Documentation

Created by

πŸ‡ΊπŸ‡ΈUnited States CLKeenan

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

Comments & Activities

Production build 0.71.5 2024