+ Start a Discussion
Jacob FloresJacob Flores 

Trailhead - Static Resources issue

I've uploaded vfimagetest and I'm pretty sure my code is ok (I saw the other static resources trailhead issue on the forum)

Am I missing something in the code or is trailhead acting funny?

User-added image
User-added image

Thanks for any/all help!

best,
Jacob
Best Answer chosen by Jacob Flores
Head In CloudHead In Cloud
Hi Jacob,

You forgot to use " ! " before "URLfor".
So, your new value should look like this: -

<apex:image value="{!URLfor{$Resource.vfimagetest, 'cats/kitten.jpg')}" />

Plz mark as answer if it solves your problem, and to help making the community clean. 
Thanks

All Answers

Head In CloudHead In Cloud
Hi Jacob,

You forgot to use " ! " before "URLfor".
So, your new value should look like this: -

<apex:image value="{!URLfor{$Resource.vfimagetest, 'cats/kitten.jpg')}" />

Plz mark as answer if it solves your problem, and to help making the community clean. 
Thanks
This was selected as the best answer
Amit Chaudhary 8Amit Chaudhary 8
PLease check below post for solution
1) https://developer.salesforce.com/forums/?id=906F0000000B2DIIA0
2) https://developer.salesforce.com/forums/?id=906F0000000BTKGIA4
<apex:page>
<apex:image value="{!URLfor($Resource.vfimagetest, 'cats/kitten1.jpg')}"/>
</apex:page>
Let us know if this will help you