-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Only date('format') filter in Summary String Transformations work. All others are broken. #7221
Labels
type: bug
code to address defects in shipped code
Comments
With further investigation, I realize that it's a matter of spaces, but only if it's written like {{var | filter}} not as {{var | filter }} <- note the space at the end. The ternary filter is sensitive about spacing before an argument. Chaining filters doesn't work. |
Hi, |
@Tarun1406 are you working on this? |
Sorry I think I can't i got a little busy in office work.
Sorry
…On Thu, Oct 17, 2024, 2:14 PM Martin Jagodic ***@***.***> wrote:
@Tarun1406 <https://github.com/Tarun1406> are you working on this?
—
Reply to this email directly, view it on GitHub
<#7221 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUHKBKBYGCLAZUBKC26F4STZ352FRAVCNFSM6AAAAABIRBTSJOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJYHEZDSMRRHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
hip3r
added a commit
to poslovnimediji/decap-cms
that referenced
this issue
Oct 24, 2024
1 task
demshy
added a commit
that referenced
this issue
Nov 12, 2024
* fix: summary string transformations format (#7221) * fix: broken tests fix * refactor: summary string transformations code to pattern --------- Co-authored-by: Anze Demsar <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The only filter that seems to work in the summary is the date one. All others are inert.
To Reproduce
summary = "{{ title | upper }} / {{ title | lower }} / {{ title | truncate(3) }} / {{ nonexistant | default('Hello') }} / {{mytruth | ternary('Yep','Nope') }} / {{today | date('yyyy') }}" yields
Title / Title / Title / / / 2024
Booleans don't display at all whether true or false (might be expected tho)
Expected behavior
TITLE / title / Tit / Hello / Yep / 2024
Applicable Versions:
Additional context
Booleans don't display at all whether true or false (might be expected tho)
The text was updated successfully, but these errors were encountered: