You need to sign in to do that
Don't have an account?
Shalu Jain
How to refer Zip file in visualforce
I have created a zip file and has included that in the "Static resources" folder.
But now i dont know how to inlude(or refer) that zip file in my visual force page.
Can anyone pls help me in doing so???
But now i dont know how to inlude(or refer) that zip file in my visual force page.
Can anyone pls help me in doing so???
Check the below lik.
https://www.salesforce.com/us/developer/docs/pages/Content/pages_resources_reference.htm
https://www.salesforce.com/us/developer/docs/pages/Content/pages_resources_reference.htm
and this,
https://developer.salesforce.com/page/Delivering_Static_Resources_with_Visualforce
Can ou please post some code that you have written? Also please post the folder structure of your zip file.
1) <apex:stylesheet value="{!$Resource.new}"/>
2) <link href="{!URLFOR($Resource.new, 'C:/Documents and Settings/jsc/Desktop/new/styles.css')}"/>
3) <apex:stylesheet value="{!URLFOR($Resource.new, 'styles.css')}" />
4) <link href="{!URLFOR($Resource.new, 'new/styles.css')}" rel="stylesheet"/>
5) <link href="{!URLFOR($Resource.new, 'new/new.css')}" rel="stylesheet"/>
but none is working
and it contains :
images, lib, styles.css, index, about, blog, gallery, contact
(it is actually a css template)
You need to upload that zip file to static resources. (Setup > Develop > Static Resources).
Read section "Static Resource Bundles" and "Example using Static Resources" in the following page,
https://developer.salesforce.com/page/Delivering_Static_Resources_with_Visualforce