You need to sign in to do that
Don't have an account?
Blair Many
How can I access HTML pages within a static resource?
I have a web-site with a number (hundreds) of HTML documentation pages.
I am tying to make this help available within sales force.
It seems logical to zip up all of these web pages and post them in a static resource. Then reference the individual pages from the index page using the URLFOR process. When using {URLFOR()} the resulting page is blank. I believe is correctly pointing to the correct resource because if I back out the file name from the URL Sales Force downloads the entire ZIP file to me. So I believe the syntax I am using is just slightly off.
<a name="SomeName" href="{!URLFOR($Resource.DOCS,'SomePage.htm')}" target="showframe">SomeDescription</a>
What happens when this link is clicked is that it renders a blank page.
Any Suggestions / Examples would be greatly appreciated.
I am tying to make this help available within sales force.
It seems logical to zip up all of these web pages and post them in a static resource. Then reference the individual pages from the index page using the URLFOR process. When using {URLFOR()} the resulting page is blank. I believe is correctly pointing to the correct resource because if I back out the file name from the URL Sales Force downloads the entire ZIP file to me. So I believe the syntax I am using is just slightly off.
<a name="SomeName" href="{!URLFOR($Resource.DOCS,'SomePage.htm')}" target="showframe">SomeDescription</a>
What happens when this link is clicked is that it renders a blank page.
Any Suggestions / Examples would be greatly appreciated.
Please refer the below example.
step1:
The below link is my HTML demo page
http://devender-developer-edition.ap1.force.com/resource/Htmlcontent
first, go to that link and save that link.
Step 3:
The way you have to refer is
htmlpage is the static resource name.
Let me know if you need any help!
Please mark the answer as Best Answer if it really helped so that it would help others as well in future.
Best Regards,
Jyothsna
Once you click the link, it opens the below output.
Here htmlpage is static resource name.
The final out of the visual force page is
Let me know if you need any help.
Best Regards,
Jyothsna
The above example is the sample one. When you click About Us or other links, it opens a blank page. Because I didn't write any functionality for the above links.