Transforms not working 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 %}
    &lt;img src="{{ asset.getUrl(squarePhoto) }}" alt="{{ asset.title }}"&gt;
{% 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' =&gt; true, to my general.php to see if that made a difference.
It's a very subtle difference, but what you have added there is a variable, when what you are looking for is a string.

&lt;img src="{{ asset.getUrl('squarePhoto') }}" alt="{{ asset.title }}"&gt;


Notice the difference?

Your current way would be correct if you had set a variable somewhere with the name of squarePhoto, like so:

{% set squarePhoto = 'transformName' %}


Check out the Twig Primer in the Craft docs.