Assets

Assets are, for now, images. These images are stored in the local file system on the server. When you upload a new asset, it is saved to the /public/assets/ folder of your server. There is a special static route to the public folder as a part of the Flint server, so when linking to an asset in a template you’ll want to do something like:

<img src="/public/assets/myimage.png" />

When you’re dealing with an AssetModel object, you can format your URL like this:

{% set asset = entry.mySuperCoolAsset %}
<img src="/public/assets/{{ asset.filename }}" />

Future plans to improve assets includes adding more available file types and categorization (like sub-folders). If you want to help improve FlintCMS in this way, please talk about it here!

Find a mistake or want to help improve this documentation? Suggest changes on GitHub.