I'm a little confused as to the formatting for the 'File Path' field for a static resource. I have a file called HoverCSS that is loaded into the Static Resources in Salesforce-- what should go into the File Path field in order to be able to reference that file?
-
222 Points
Posted 4 years ago
Irvin Waldman, Champion
-
9,016 Points
-
222 Points
Ah, I guess I was misinterpreting what that field is for. So the only field I need to worry about is the Resource Name?
Even with just that filled in, I'm still having some trouble using the custom css file.
Even with just that filled in, I'm still having some trouble using the custom css file.
Zach McElrath, Employee
-
49,648 Points
What sort of trouble are you experiencing? Is the CSS file being loaded successfully, or not at all?
Ben Hubbard, Employee
-
12,530 Points
The path is only necessary if your Static Resource is a zip file. If you just uploaded the CSS file as a static resource, then you should leave that field blank.
Irvin Waldman, Champion
-
9,016 Points
Do you know how to check if the file is loaded? Open Chrome Developer Tools and check the Resources folder in the Sources Tab.
Irvin Waldman, Champion
-
9,016 Points
Did you select the Public option for Cache Control?
Take a look at this tutorial http://help.skuidify.com/s/tutorials/m/getting-started/l/151288-copy-paste-a-set-of-sample-pages-you... and the section How to Create the OpportunityJS Static Resource.
Take a look at this tutorial http://help.skuidify.com/s/tutorials/m/getting-started/l/151288-copy-paste-a-set-of-sample-pages-you... and the section How to Create the OpportunityJS Static Resource.
Irvin Waldman, Champion
-
9,016 Points
Check out this video starting a little after minute 6:00. John explains how to configure static resources.
https://www.youtube.com/watch?v=7bt5-QpEUn8
https://www.youtube.com/watch?v=7bt5-QpEUn8