Questions tagged [static-resources]

Static resources allow you to upload content that you can reference in a Visualforce page, including archives (such as .zip and .jar files), images, stylesheets, JavaScript, and other files.

Filter by
Sorted by
Tagged with
1
vote
1answer
45 views

How to write to static resource (text file) in Managed package

How to write to a static resource (text file) in a Managed package In my developer org, I can read and write a static resource file by a visualforce page. I make a managed package of them, then ...
0
votes
1answer
48 views

Image stored in Static resource not getting displayed in lightning component

I have a lightning component that shows the image of a car from the static resource. I have uploaded this zip file which contains images of cars as a Static resource. following is the code of the ...
0
votes
0answers
19 views

Include managed static resource in Vf page [duplicate]

I have installed a managed package that has some static resources along with other features. I want to include a static resource to my vf page, but i get an error message: "Error: Field $...
0
votes
0answers
20 views

SFDX Source retrieve duplicating folder this happen only in static resources folder

In staticresources folder, i have Theme folder force-app/main/default/staticresources/test_Theme/css/style.css If i try to retreive style.css file, this file will replace to what's inside test_Theme....
1
vote
1answer
23 views

What is the best method to display images on a VisualForce page?

Is it still best to use Static Resources to zip up images to use in a VisualForce page (or elsewhere)? We basically display a table on the page with a small image (a company logo) in each row. ...
2
votes
1answer
44 views

Static Resource in VisualForce Page

I am using google Re captcha in my Visual force Page as below <apex:page sidebar="false" showHeader="false"> <apex:slds /> <html> <head&...
0
votes
0answers
23 views

Inactive page for community won't display static resources

I am developing a VisualForce page using the below css and html. While I've double and triple checked that the resources are in the org, public, and properly referenced, when I deactivate the org ...
0
votes
2answers
61 views

LWC loadScript of Static Resource works on Local Development Server but not when deployed to Sandbox

I used FullCalendar package to develop a rather simple LWC which includes a single DIV where the package dynamically loads it's elements. <div id="calendar" lwc:dom="manual" ...
2
votes
1answer
32 views

Can I import javascript from outside of my managed package into a LWC in my package?

In our managed package, we have a particular page where we have some default javascript that runs some calculations on some fields as you type and I am in the process of converting this page to LWCs. ...
0
votes
1answer
34 views

How to get a static resource URL to work in a Community without a gack?

I have a static resource that opens fine using this URL from the normal Salesforce desktop where the domain is https://flow-flow-3628-dev-ed.lightning.force.com): /resource/1594633705000/...
0
votes
0answers
16 views

Problem with custom font in Visualforce Page

I am trying to apply a custom font to my visualforce page. I followed the steps laid out in Use Custom Fonts . I have no idea what's wrong. Here's my css definition: @font-face { font-family: ...
0
votes
1answer
45 views

how to set component attribute value in static resource css

problem : I have to set values of css dynamically . I upload css file in static resource css is like : p { font-size : {v.font_size} } component : <aura:attribute name="font_size&...
0
votes
0answers
20 views

Issue with load Static Resource to Aura component

I have a folder that I compressed to ZIP and I want to import it to my aura component, but the "afterScriptLoaded" is never call. <aura:component implements="force:appHostable,...
0
votes
0answers
10 views

Document/Static Resource URLS in Email Templates in Source Control

Let's say that I have a Document or a Static Resource which stores an image that I use in an email template. The .email file within my project directory will have something that looks like this: <...
1
vote
1answer
101 views

LWC: Issue with loading static resources

I've incorporated the code documented in the following article into a new component: Play YouTube Videos Through Lightning Web Components It seems like the two JS files referenced, iframe_api.js and ...
3
votes
1answer
52 views

SRC reference inside lightning components

Here is the css reference, I have uploaded the font to the static resource, the source org showing up the correct font face but once I package the app (yes I included the static resource) to the ...
17
votes
7answers
1k views

Custom Metadata vs. Custom Objects in Managed Package

I worked on Managed packages for nearly 10 years now and never missed Custom Metadata Types. Not before they came and not after they were announced. I didn't come across a single great and technical ...
0
votes
0answers
24 views

Accessing static resource from ZIP file in Aura component

I Uploaded a JQ_UI.zip file. Structure shown below: JQ_UI.zip - jquery-ui.min.js -jquery.ui.js -jquery-ui.min.css Aura component: <ltng:require scripts="{!join(',', $...
0
votes
1answer
29 views

upload icon is not applying for use tag in lightning component

I have uploaded Icon's in static resource as a zip format and when i am trying to get upload icon from them while saving component it is throwing error. No function found for key: URLFOR: Source <...
1
vote
0answers
105 views

How to make font-awesome icons work on Lightning Web Components?

Downloaded the latest version of the Font Awesome Icons as a .zip file, I extract the files and uploaded the file all.css as a static resource in my scratch org. Below is my html <i class="fab fa-...
0
votes
1answer
30 views

Custom Font in Community not Loading via custom Domain

We have a Community that has a custom font set as primary font. This works fine when we access the community via its default force.com URL. However, we also set up a custom domain, and when we ...
-1
votes
1answer
39 views

CSV parser to insert records into Custom Object

I have a requirement to insert records into custom object called Custom_Business__c using a csv file which is stored as a static resource. Below is the code I've achieved so far public class ...
0
votes
0answers
73 views

Static Resource CSS not loading in a Community

I just did a sandbox refresh from our production sandbox, and I am trying to make sure the community still works. In the community in production, we added static resource css files to the markup head ...
1
vote
1answer
100 views

Can we add static resource image in lightning treegrid?

COMPONENT: <lightning:treeGrid columns="{! v.gridColumns }" data="{! v.gridData }" keyField="name" expandedRows="{! v.gridExpandedRows}" aura:id="mytree" /...
0
votes
0answers
29 views

Custom labels in static resource

I am trying to make the data-sitekey into custom label. The datasitekey is in the static resource file. I created a custom label name sitekey. Earlier I was hardcoding the site key and it was working ...
0
votes
0answers
53 views

Loading Static Resource into Lightning Component

I am trying to access the test.png file from my static resource into my css of a aura component. Working CSS: background:url('/resource/158765027200/test'); //resource path achieved using {!$...
4
votes
2answers
241 views

LWC: Import JSON from a zip Static Resource

The platformResourceLoader module only offers loadScript and loadStyle. Is there a way to load JSON files from a zip Static Resource?
1
vote
0answers
75 views

Accessing files containing whitespace from a zip Static Resource in Apex

There is a known issue with zip Static Resources that prevents files with whitespace in their names from being extracted (I suppose the Static Resource web service on SFDC cannot handle whitespaces). ...
0
votes
0answers
195 views

Can't import static resource in LWC

I've been trying to access static resource in lwc but I can't use @salesforce because it gives me an error of "scoped imports not allowed when a runtime namespace is specified : lwc". I simply can't ...
0
votes
1answer
20 views

Firing a js event on afterScriptsLoaded when tab selected

I have a lightning component (inside another component) that loads chartJs resource and I am using afterScriptsLoaded to manage all de graph presentation logic. It works perfectly except for some ...
0
votes
1answer
57 views

How to put a static resource (including loading the same) and related code on a service component and use it on Lightning web component?

I'm trying to understand how can I put javascript static resource and related code on a service component (including loading the resource) and then use it on Lightning web component. Please note ...
2
votes
1answer
133 views

Blob is not a Valid UTF-8 String - Only after “–” [duplicate]

I created a CSV parser that parses CSV's from static resources. I am returned with a Blob is not a Valid UTF-8 String error when parsing the character: "–" different from "-". The "–" is apparently ...
0
votes
0answers
23 views

Is there any way to make aura component handle a event captured from javascript api in static resource?

Do you know how to make aura component handle an event captured from External javascript api? The process likes below: 1. A javascript api is in the static resource. 2. Aura component contains the ...
1
vote
1answer
732 views

Static JavaScript resource with LWC

LWC rookie here, How can we call a JavaScript function from LWC? For example I have the following static resource helloWorld.js and I'll like to use and call the function in the file. How can I ...
0
votes
0answers
14 views

Lightning Icon Static Resource Conditonal

I need to conditonally display icons from a static resource. I am trying to code like this --- <lightning:icon iconName="{!empWrap.emp.Request_Status__c == 'Requested' ? '{$Resource....
1
vote
0answers
21 views

How to test where an imported static asset library fails on import

I have been trying to upload various bundled libraries to static resources to import them into a LWC component. I have been successful in doing this when using api version 39, but this fails on ...
0
votes
1answer
58 views

component lightning static resource js call another js resource

i have a component lightning and i import 2 scripts "PDF.js" and "scripts.js" my static resource have 3 files zip "PDF.js", "script.js" and "worker.js" <aura:component > <ltng:require ...
0
votes
0answers
43 views

Lightning Web component (LWC) Angular App static resource

Running into the issue of invoking Angular App (which is static resource) inside the LWC. What is the right way of invoking static resource application from LWC? Can someone please share an example? ...
0
votes
0answers
20 views

Cache Control Not Visible When Creating Static Resources in Both Sandbox and Production Environments of a Professional Trial Org

I noticed that there's no Cache Control settings when I try to create a new static resource in both sandbox and production environment of a newly-created Professional edition trial org. Why is this ...
0
votes
0answers
70 views

Lightning Container NPM - no controller and/or function found

I am working with the lightning-container npm package and have a call in a React app uploaded as a static resource. This simply onClick, calls the LCC.callApex method as below. LCC.callApex("...
2
votes
1answer
414 views

Accessing static resource from ZIP files in Aura component - <ltng:require

I uploaded my zip file which contains css and js folder here is my zip folder structure: static resource name: mystaticresources myuploadzip.zip --js jquery211.js myjs1.js ...
1
vote
0answers
113 views

Partner Communities and Site Prefix

Good day! I recently configured a partner community in a salesforce org and I found out that for resources to be working (either for loading or navigation) a site prefix should be appended in url. ...
0
votes
1answer
81 views

How to retrieve static resource from backup

Apparently a co-worker accidentally overwrote a static resource zip file. I do weekly backups. Is it possible to retrieve past static resources from a zip file?
1
vote
0answers
231 views

Image cannot be displayed because it contains errors

I have a page that contains images stored in static resources. They are inconsistently displaying. I just tried to manually display the image that isn't displaying. I receive the message: The image ...
0
votes
1answer
21 views

How can I carry over my 'dynamic tag' when rendering as pdf from html visual force page?

I have a Lightning Component, that is iframing a VF Page which displays a plain text Static Resource. The VF Page has a text placeholder 'CONTACTNAME' that is replaced with Contact.Name which is sent ...
6
votes
2answers
881 views

Salesforce Community suddenly not accessible

Sometime today my Salesforce Community stopped being available to guest users. For example, a guest user cannot access public static resources. None of the fonts, etc. are accessible. I am in ...
0
votes
1answer
60 views

Sharing a common fragment among multiple Classic email templates [duplicate]

I have tons of classic HTML (with classic letter header) email templates in a classic org. All of the emails share a common HTML disclosure that is text with some hyperlinks. To ensure consistency ...
2
votes
1answer
1k views

JSON files in Static resource lightning web component

I am working with lightning web components and I have static json files. I want to work with them in LWC in my javascript file. its not a zipped file. I want the files to be in static resource because ...
-1
votes
2answers
69 views

How to access the content of 3rd part script with loadscript?

Given the code below, how do I do to have access to ImmutableJS content after the execution of loadscript function? import immutableJsStaticResource from '@salesforce/resourceUrl/immutable_3_8_2'; ...
0
votes
1answer
148 views

ltng:require not able to save syntax error?

I want to load in two static resource js files. My code: <ltng:require scripts="{!join(',' $Resource.resource1, $Resource.resource2)}"/> On save attempt, I get the following error: ...

1
2 3 4 5
7