https://github.com/lesaff/statamic-addcomma
Add comma modifier for Statamic
https://github.com/lesaff/statamic-addcomma
Last synced: 5 months ago
JSON representation
Add comma modifier for Statamic
- Host: GitHub
- URL: https://github.com/lesaff/statamic-addcomma
- Owner: lesaff
- Created: 2015-05-10T14:45:40.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-10T14:47:50.000Z (about 11 years ago)
- Last Synced: 2024-12-29T22:36:54.686Z (over 1 year ago)
- Language: PHP
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Add comma modifier for Statamic
By Rudy Affandi (2015)
Version 1.0.0
## What is this?
Use this modifier to add comma and a white space to your value's output. You can do this using a series of `if` statement but that would be too long and messy ain't it?
## Changelog
1.0.0 - Initial release
## Installation
Copy the `statamic-addcomma` folder to the `_add-ons` folder in your Statamic website. Rename it to `addcomma`
## How to use
Add `addcomma` to your ouput tag as a modifier.
```
{{ my_output|addcomma }}
```