Money Filter Docs #373
Answered
by
mattstein
richhayler
asked this question in
Ideas
|
It would be great if the docs elaborated on the use of the "money" filter. For example you can output the value and currency doing: https://craftcms.com/docs/4.x/dev/filters.html#money |
Answered by
mattstein
Jun 21, 2022
Replies: 1 comment
|
The You may want the |
0 replies
Answer selected by
AugustMiller
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
|moneyfilter always outputs a value and currency, and in this case you’re passing'currency'as a formatLocale argument that’s documented here. Since that’s not a valid locale, the default will be used—and you should see the same result using|money()or|money('foo').You may want the
currencyfilter, instead!