Page 1 of 1

Customize webhelp image paths

Posted: Wed Mar 11, 2015 10:25 pm
by edotm
Hello,

We are evaluating Oxygen 15.2 to generate webhelp output. There are some images that will exist outside of the webhelp folder, and I have been looking for a way to modify the relative paths. We do not want to use an html link. Is there a parameter or file I can modify to accomplish this?

Thanks

Re: Customize webhelp image paths

Posted: Thu Mar 12, 2015 11:12 am
by sorin_ristache
You should keep the relative paths. I suppose they have a relative path like <image href="../../outside-dir/image.gif"/>. Please set the fix.external.refs.com.oxygenxml to value true in order to have the images included in the WebHelp pages.

Re: Customize webhelp image paths

Posted: Mon Mar 16, 2015 7:47 pm
by edotm
Thanks for your reply. I understand your recommendation. Along those lines, I'm looking at linking to some individual topics in webhelp through a web app. For example, the paths are built relative to the webhelp folder, but if Document Root is set to htdocs then links to images, etc., break. They need the reference to the "webhelp" folder in the path. Is there somewhere to set the base URL for the relative links in the transform? I've tried duplicating the webhelp transform and poking at some of the files but am not successful.

Re: Customize webhelp image paths

Posted: Tue Mar 17, 2015 12:26 pm
by sorin_ristache
There is no parameter for changing the base URL of relative links. The base URL of a relative link is always the URL of the file containing the link.

I recommend processing and modifying the relative links in the WebHelp pages after they are generated by the Oxygen WebHelp transformation, for example using an ANT script.

Re: Customize webhelp image paths

Posted: Tue Mar 17, 2015 11:09 pm
by edotm
Ok. I was hoping there would be something simple I could tweak but I understand your recommendation. Thank you for your time.