display static resource image in table's template field

Matt SonesMatt Sones 💎💎💎
edited May 8, 2017 in Questions
I have a static resource that I'd like to display in a table template. I'm currently using something like this:

{{#Ultrasound_Skill_Approved__c}}<img src="/resource/1479417508000/MDSignature">{{/Ultrasound_Skill_Approved__c}}
Is there any way I can make that more generic, so that it will display the image if all I know is the name of the static resource?

Comments

  • Matt SonesMatt Sones 💎💎💎
    edited February 10, 2017
    Ah, apparently I can just eliminate the Id in the URL, and salesforce will figure it out:
    {{#Ultrasound_Skill_Approved__c}}<img src="/resource/MDSignature">{{/Ultrasound_Skill_Approved__c}}
  • edited March 2, 2017
    Matt - yep exactly!  If you hardcode the numbers in there, you'll have an issue when you move the page from org to org...so you've got the correct way to reference it!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!