-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Filter date for a field entry to use in the slug #4783
Comments
To add some more context, one can inject the file creation date using but this issue is about using a specific field's date and formatting it. |
Any idea if this is going to be done (or if it's hard to do)? It looks like a no-brainer since there is already https://www.netlifycms.org/docs/beta-features/#summary-string-template-transformations . |
Process template filters first, then strip `'` and `.` characters from slug strings. Fixes decaporg#4783
Process template filters first, then strip `'` and `.` characters from slug strings. Fixes decaporg#4783
Process template filters first, then strip `'` and `.` characters from slug strings. Fixes decaporg#4783
Process template filters first, then strip `'` and `.` characters from slug strings. Fixes decaporg#4783
Process template filters first, then strip `'` and `.` characters from slug strings. Fixes decaporg#4783
Process template filters first, then strip `'` and `.` characters from slug strings. Fixes decaporg#4783
Process template filters first, then strip `'` and `.` characters from slug strings. Fixes decaporg#4783
Yes, I want to do something like this too! slug: 'game-{{gamenumber}}-{{opponent.teamname}}-{{gamedate | date('YYYY')}}' Does that work yet? I am inclined to solve this on the path level with: Hope that works at least. |
I'd like to inject a "Game or Event Year" into the slug. Rather than creating fields for day and year, I'd like to be able to strip the year from the single "Event Date" field entry and use that in my slug.
Basically exactly what you have done for summaries: https://www.netlifycms.org/docs/beta-features/#summary-string-template-transformations.
The text was updated successfully, but these errors were encountered: