You need to sign in to do that
Don't have an account?
Kellymt
How to reference static resources NOT part of a managed package from pages part of a managed package
We have an managed package which references settings stored in static resource which is not part of the managed package. We want to keep the static resource not a part of the managed package because we want to let the user modify those settings.
Could you please let me know what is the best practices way to referene static resources not part of a managed package wtihin Visualforce page which is part of a managed package.
We cannot use URLFOR because that would require the resource to be a part of the package.
If we handcraft the url like this <apex:includeScript value="/resource/1463666571000/foo" />
The resource would not be loaded because the absolute url will be https://MANAGEDPACKAGEPREFIX.cs80.visual.force.com/resource/1463666571000/foo and Salesforce will not find it because the resource sits here:
https://c.cs80.visual.force.com/resource/1463666571000/foo
Thanks!
Could you please let me know what is the best practices way to referene static resources not part of a managed package wtihin Visualforce page which is part of a managed package.
We cannot use URLFOR because that would require the resource to be a part of the package.
If we handcraft the url like this <apex:includeScript value="/resource/1463666571000/foo" />
The resource would not be loaded because the absolute url will be https://MANAGEDPACKAGEPREFIX.cs80.visual.force.com/resource/1463666571000/foo and Salesforce will not find it because the resource sits here:
https://c.cs80.visual.force.com/resource/1463666571000/foo
Thanks!
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_custom_settings.htm
I'd like to have a Visuaforce page (inside a managed package) reference both Static Resources in and out of said managed package.