function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Concatenate Static Resources {!URLFOR($Resource.???Error: Syntax error. Missing ')'


   How can I place this syntax into Apex Code:

<img src="/resource/Category_{!c.Name}" border="0" alt="{!c.Label}" title="{!c.Label}"/>

 To: Im getting the error: Error: Syntax error. Missing ')'

 <apex:image value="{!URLFOR($Resource.Category}+'_'+{!c.Name}" alt="{!c.Label}" title="{!c.Label}" />



Laxman RaoLaxman Rao

You can try this:


 <apex:image value="/resource/Category_{!c.Name}" />