Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lesaff/statamic-get_segments
Statamic Get URL Segments Modifier
https://github.com/lesaff/statamic-get_segments
Last synced: 9 days ago
JSON representation
Statamic Get URL Segments Modifier
- Host: GitHub
- URL: https://github.com/lesaff/statamic-get_segments
- Owner: lesaff
- License: mit
- Created: 2015-08-08T10:39:59.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-08T10:46:00.000Z (over 9 years ago)
- Last Synced: 2023-08-06T05:21:27.244Z (over 1 year ago)
- Language: PHP
- Size: 148 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# statamic-get_segments
Statamic Get URL Segments Modifier## Installation
Rename folder to `get_segments` and copy to your `_add-ons` folder## Usage
Let's say you have a field titled `url`.
The value of that field is `http://www.instagram.com/justinbieber/blah``{{ url|get_segments:1 }}` will get you `justinbieber`
`{{ url|get_segments:2 }}` will get you `blah`