BTW, the files I am attempting to link to are pdf files created from Frame 7 source files. I author in Frame, print to a .ps and Distill into the pdf.
BTW2 - I tried adding the pdf file to my Baggage file and no difference.
The simplest way to link to a PDF is to add it to Baggage, then click and drag from the Baggage folder to the selected text.
Helpful and Handy Links
Works perfectly - thanks a lot! (Wish I'd fought it less and posted sooner...)
Rick, what if I want to link to 10 or 20 large PDF files? I don't want all those file in baggage. Is there an easy way of doing this in RH8?
My team had a custom script solution in RH7, but RH8's WYSIWYG editor ruins the links.
FYI, some of the PDFs are in the same folder as the CHM file ends up in, and some are not.
Baggage is always nice because it ensures you end up with the files you linked to. But I do understand if you don't wish to go that route.
What I might suggest is building redirect topics to accomplish this. Everyone who has ever visited the web for more than five minutes has likely encountered a redirect page. You know the ones I'm talking about. You click a link and see something like:
Please update your bookmarks, because this page has been moved. You will be automatically redirected to the new page in 10 seconds. If not, click the link below to go there now.
So basically you create a topic that has as its only purpose for living, to open the desired file. This has an unexpected side benefit. Normally when you attempt to open a PDF, Word document or other type of file, there is usually an unusually long wait as the file is fetched and opened. This often causes your end user to think the link is broken or some other catastrophe has occurred. By using a redirect topic, you avoid that by displaying a temporary message advising them to be a bit patient as the page loads up.
To create one of these beasties, insert the following code somewhere in the HEAD area of your new redirect topic:
<meta HTTP-EQUIV=refresh CONTENT="0;URL=FileName.ext">
What you will need to change are the 0 (set to the number of seconds for the delay. 0=immediate) and the FileName.ext (use the desired file name and path here)
You need to create a new topic for each file you wish to open. (assuming, of course, you wish to operate this way)
Helpful and Handy Links
Thanks, Rick. I really appreciate those instructions and may use them in other circumstances. For this particular project, after lots of experimenting and testing I managed to make the links to PDF files work using a new script that RoboHelp doesn't mess with. See attached instructions -- maybe these will help others with the same problem. Try them out and test thoroughly!
Note that in order for the attached instructions to work, you have to have the CHM file and the PDF file in a fixed relative location.
Update: I deleted the file I had attached because I realized that the instructions weren't complete. It's a bit complicated, but if anyone wants the instructions, just let me know.