You need to sign in to do that
Don't have an account?
Praz01
using static resource as properties file
I want to diplay some text in the page which I don't want to hardcode or type in the page rather using some properties file for this. Can I used static resource file for this. If yes how can I? I did not get any reference from the pdfs.
You create custom labels through configuration - Setup -> App Setup -> Create -> Custom Labels.
Then you can access them in your visualforce code like so:
where MyLabel is the name that you gave the label when creating it.
All Answers
Have you considered custom labels? That is an easier way to add configurable text to your pages than uploading resource files. Its also easier for someone else to change.
You create custom labels through configuration - Setup -> App Setup -> Create -> Custom Labels.
Then you can access them in your visualforce code like so:
where MyLabel is the name that you gave the label when creating it.
Thanks a lot :smileyhappy:
One problem is I cannot store any hypertext here in the label....
Hi Bob/Praz,
How can we get label value based on label name from properties file (static resource) instead of creating custom labels ?
Because creating custom labels for all properties is time consuming process.
Could you please help me with this.
Thanks.