Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
$Resource
Usage
Use {!$Resource} to reference an existing static resource. The format is {!$Resource.nameOfResource}, such as {!$Resource.TestImage}.
Examples
1<apex:image url="{!$Resource.TestImage}" width="50" height="50"/>1<apex:image url="{!URLFOR($Resource.TestZip,
2 'images/Bluehills.jpg')}" width="50" height="50"/>You can also use dynamic references to reference static resources. For example, {!$Resource[appLogo]}, assuming there is an appLogo property or getAppLogo() method in your page’s controller.