• Agendum
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 3
    Replies

Hi,

 

I've uploaded some images to:

 

\staticresources\images\codename\foo.jpg

\staticresources\images\codename\bar.jpg

 

So I found $Resources, but the docs don't really answer how to reference images in subfolders.  How can I use URLFOR and $Resources to get the path to these images?

 

Once I get an answer to that question, I have a followup... do I have to use <apex:image> instead of using <img> with the URLFOR to render an image?  If not, what is the advantage of using <apex:image> over <img>?

 

Thanks!