You need to sign in to do that
Don't have an account?

Customer portal need sandbox to display images
Hello to all and Happy New Year,
My customer portal is not independent of the sandbox.
I have a customized url that takes me to the portal.
If the sandbox is not active in the browser most of my images are broken, when i logon to the sandbox the images are displayed correctly.
This is happening on IE, FF and Chrome.
Can someone help me out?
Regards,
Haya
My customer portal is not independent of the sandbox.
I have a customized url that takes me to the portal.
If the sandbox is not active in the browser most of my images are broken, when i logon to the sandbox the images are displayed correctly.
This is happening on IE, FF and Chrome.
Can someone help me out?
Regards,
Haya
is it a Sandbox Customer Portal?
Could you please check the URL of the images which appear broken using firebug or any browser component inspector to see from where these images are loading? try loading them using direct URL..
All Answers
is it a Sandbox Customer Portal?
Could you please check the URL of the images which appear broken using firebug or any browser component inspector to see from where these images are loading? try loading them using direct URL..
Are you using resources or documents to host these images?
I am trying to understand the connection/differences between the images in Documents and images in Static Resources.
In documents i have a file named portal logo.
When I View file I see the html: https://cs3.salesforce.com/resource/1366877534000/portal_logo
This is what I loaded into the Portal Header
<div style="position:relative; width:720px; height:50px; margin: 0 auto; padding:0px; left:0px;right:0px;z-index:1;"><img src="https://cs3.salesforce.com/resource/1366877534000/portal_logo" style="width:720px;height:50px;" /></div>
When i open the header image from a portal's page in a new tab the url is: https://cs3.salesforce.com/resource/1366877534000/portal_logo
How do i change the html to use a direct url?
Should I have loaded the image into Static Resources and used it from there?
Can someone please help me with this?
Should I have my images in documents or in static resources?
How do I use a direct URL?
Help would be greatly appreciated.
Haya
This is my latest Portal Header:
<div style="width:100%;background-color: #1e1e1e; padding:20px 0;">
<div style="position:relative; width:720px; height:50px; margin: 0 auto; padding:0px; left:0px;right:0px;z-index:1;"><img src="{!$Resource.portal_logo}" style="width:720px;height:50px;" /></div>
<div style="z-index:2; position:relative; margin: 0 auto; padding:0px;">
</div>
</div>
I have the portal_logo in Static Resources. When I view it the url is: https://cs3.salesforce.com/resource/1389858751000/portal_logo
But when i logon to the portal, the image is broken and when i open the broken image in a new tab the url is : https://cs3.salesforce.com/resource/1366877534000/portal_logo
I tried clearing cache but it doesn't help.
Is there a cache in the sandbox i need to clear?
This works:
<div style="width:100%;background-color: #1e1e1e; padding:20px 0;">
<div style="position:relative; width:720px; height:50px; margin: 0 auto; padding:0px; left:0px;right:0px;z-index:1;"><img src="/forte/resource/portal_logo" style="width:720px;height:50px;" /></div>
<div style="z-index:2; position:relative; margin: 0 auto; padding:0px;">
</div>
</div>
I guess one cannot use apex code in the middle of html: <img src="{!$Resource.portal_logo}">
Thanks for pointing me in the right direction.
Haya