Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-24T18:08:24.000Z (over 7 years ago)
- Last Synced: 2024-12-16T02:07:26.988Z (about 1 month ago)
- Language: PHP
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- 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 }}
```