Get asset folder and filename together I am using a 3rd party service to run the image processing so I do not need full URL's for the images. I just need it to spit out the relative path name of the asset, not the absolute URL. I seem to be able to get either the asset.folder or the asset.filename but not both.

{% if entry.homepageImage|length %}
{% set asset = entry.homepageImage.first() %}
  &lt;img ix-path="{{ asset.filename }}" alt="Test Image"&gt;
{% endif %}


I did try including the folder when setting the asset but that didn't work either, plus seems quite convoluted for something relatively simple.

{% set asset = entry.homepageImage.folderId(2).first() %}
AssetFileModel's getPath should do what you're looking for.

&lt;img ix-path="{{ asset.getPath() }}" alt="Test Image"&gt;