How to use own images in customisation


#1

Hi,

How can i insert images from customisation folder and render in templates?


#2

Hey,

so you need to put the images in the folder named static inside your $CUSTOMIZATION_DIR folder.
After that it is just a matter of creating an <img /> HTML element with correct src attribute. As the documentation states

Static files may be added in <CUSTOMIZATION_DIR>/static. They can be
referenced in templates through the assets.custom endpoint.

For example:

<img src="{{ url_for('assets.custom', filename='<name of the file>') }}">

Hope that helps.

Regards,
Michal


#3

Thanks, it works…!:relieved: