2

I have uploaded the image into the static resource and refer the image to some formula field. Its working fine. But when I am shifting the view form admin view to customer-community view the image not visible.

I think permission issue. but I don't know how to resolve that.

My Formula code :

CASE(   action , "smily", IMAGE("/resource/1395482876000/Images/123.png","smily",20,20))

Community Customer View:

enter image description here

My Admin View:

enter image description here

3

Use following code in your formula field.

IMAGE(LEFT($Api.Partner_Server_URL_260, FIND( '/services',$Api.Partner_Server_URL_260))++"resource/. imgae
0

Looks like you are using an absolute path to your static resource.

https://emea.salesforce.com/resource/1399493228000/SiteSamples -> /resource/1399493228000/SiteSamples
  • Yes. I have set that also. – Alex May 29 '14 at 16:02
  • Are you using a formula to get the url of your static resource? – Christian Deckert May 29 '14 at 16:06
  • Yes. the problem is when I am switch the view to community customer view, the image not visible. – Alex May 29 '14 at 16:27
  • I have updated the image FYI. – Alex May 29 '14 at 16:28
  • can you please share your formula? (Maybe you are using an absolute paths to your image.) – Christian Deckert May 29 '14 at 16:46
0

Double check that the resource's Cache Control is set to Public (https://www.salesforce.com/us/developer/docs/pages/Content/pages_resources_create.htm).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.