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
Shalu JainShalu 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???
SarfarajSarfaraj
Refer this,

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



Shalu JainShalu Jain
i have checked the links and have tried to do the same as written but still my visual force page is not able to refer the zip.
SarfarajSarfaraj
hi Shalu

Can ou please post some code that you have written? Also please post the folder structure of your zip file.
Shalu JainShalu Jain
i have tried many different codes like

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
Shalu JainShalu Jain
my zip folder is on my desktop. name of zip file is new..
and it contains :
images, lib, styles.css, index, about, blog, gallery, contact

(it is actually a css template)
SarfarajSarfaraj
Hi Shalu

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