Customize webhelp image paths

Oxygen general issues.
edotm
Posts: 5
Joined: Fri Feb 06, 2015 2:20 am

Customize webhelp image paths

Post 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
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Customize webhelp image paths

Post 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.
Regards,
Sorin

<oXygen/> XML Editor Support
edotm
Posts: 5
Joined: Fri Feb 06, 2015 2:20 am

Re: Customize webhelp image paths

Post 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.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Customize webhelp image paths

Post 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.
Regards,
Sorin

<oXygen/> XML Editor Support
edotm
Posts: 5
Joined: Fri Feb 06, 2015 2:20 am

Re: Customize webhelp image paths

Post by edotm »

Ok. I was hoping there would be something simple I could tweak but I understand your recommendation. Thank you for your time.
Post Reply