just getting start with Craft, and I can't figure out why my images won't output. Any time I try to output even the path to the url of my image, I get an internal error: Craft\AssetFileModel and its behaviors do not have a method or closure named [...]
.
I can successfully do this:
{% if entry.pageImage | length %}
{% for pageImage in entry.pageImage %}
{{ pageImage }}
{% endfor %}
{% endif %}
Which just outputs the title of the image. But I want to display the image. I was expecting to be able to be able to use {{pageImage.getUrl()}}
or {{pageImage.url}}
or {{pageImage.fileName}}
but these will throw the aforementioned error. How do I output an image?