Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 }}
```