https://github.com/mattstauffer/craft-convert-asset-urls
Quick filter to convert asset URLs in a super janky way because i needed it and couldnt' find a less janky solution faster than i could just write this
https://github.com/mattstauffer/craft-convert-asset-urls
Last synced: 3 months ago
JSON representation
Quick filter to convert asset URLs in a super janky way because i needed it and couldnt' find a less janky solution faster than i could just write this
- Host: GitHub
- URL: https://github.com/mattstauffer/craft-convert-asset-urls
- Owner: mattstauffer
- Created: 2017-08-24T13:55:12.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-24T18:08:24.000Z (almost 8 years ago)
- Last Synced: 2025-03-29T10:34:13.497Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# craft-convert-asset-urls
## What is this?
I was outputting a field in a way that didn't run it through Craft's `{asset:12345:url}` parser. I looked around for it for about an hour and then gave up so built this instead.
*This is not the right way to do this.*
This is just here for fun.
## How to use this
Install the plugin and use the filter in Twig:```twig
{{ entry.mdBody | convertAssetUrls }}
```