Money Filter Docs #373
-
|
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 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The You may want the |
Beta Was this translation helpful? Give feedback.
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!