-
Notifications
You must be signed in to change notification settings - Fork 1
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
Using modifiers in title_format #1210
Comments
Hey! Other than that: Looks like you aren't using double curly braces. Try this: Sometimes, there's also some weird whitespace added by editors. Try removing the spaces between the curly braces like so Docs: https://statamic.dev/modifiers/truncate |
Thank you ! The docs should maybe be updated with double braces. I'll remember the Discord for other similar issues. Cheers ! EDIT : I even got to make work exactly what i wanted, which is to add the last name's initial only when the first name is also someone else's (which is specified with an
Statamic is awesome 🙏 👏 |
Glad to hear you managed to get it sorted! Feel free to contribute to the docs if you feel it could be made clearer. |
Hi there,
I'm a new user of Statamic, and really enjoy it so far.
Thanks for this awesome tool !
Issue
I tried to use a modifier in my title_format, like so :
{ first_name } { last_name | truncate(1, '.') }
and it doesn't seem to be parsed properly, as i get :
John { last_name | truncate(1, '.') }
Is that a lack of feature, or a bug ?
Generally, i find that using logic and operators in title_format could be useful.
Thank you !
PW
The text was updated successfully, but these errors were encountered: