Having issues getting Craft to use a transform I set in the CP: squarePhoto
. I keep getting a template error, even though that transform exist.
Variable "squarePhoto" does not exist
The template code in question is:
{% for asset in block.photoImages %}
<img src="{{ asset.getUrl(squarePhoto) }}" alt="{{ asset.title }}">
{% endfor %}
After digging through other threads, I saw that Craft adds a subfolder to the directory with the transform name–this has not been generated. What am I missing?
I've also added the config var 'generateTransformsBeforePageLoad' => true,
to my general.php to see if that made a difference.