[BUG] Chunked webhelp topics have no associated CSS
Posted: Wed Apr 27, 2016 9:41 pm
When the chunk="to-content" AVP is applied to a topicref with sub-topics in a map, the webhelp output is correctly chunked -- all sub-topics appear on the same page -- but the chunked page has no associated CSS. When a standard Inspect Element tool is used on the page, no associated CSS files are found.
I've identified the problem. In the chunked page, the link elements in the head do not point to the correct CSS directory.
Correct example
<link rel="stylesheet" type="text/css" href="../oxygen-webhelp/resources/css/webhelp_topic.css"><!----></link>
<link rel="stylesheet" type="text/css" href="../oxygen-webhelp/resources/skins/skin.css"><!----></link>
Incorrect (chunked) example
<link rel="stylesheet" type="text/css" href="oxygen-webhelp/resources/css/webhelp_topic.css"><!----></link>
<link rel="stylesheet" type="text/css" href="oxygen-webhelp/resources/skins/skin.css"><!----></link>
Note: Generated with Oxygen version 17.1, build number 2016020417.
In our content, webhelp .html files are in a sub-folder under the main index.html. The CSS reference must back out before pointing to the oxygen-webhelp folder. This is not happening when -- and only when -- the topic is chunked.
Is there a way to fix this situation? We would like to use chunking more in our production webhelp.
I've identified the problem. In the chunked page, the link elements in the head do not point to the correct CSS directory.
Correct example
<link rel="stylesheet" type="text/css" href="../oxygen-webhelp/resources/css/webhelp_topic.css"><!----></link>
<link rel="stylesheet" type="text/css" href="../oxygen-webhelp/resources/skins/skin.css"><!----></link>
Incorrect (chunked) example
<link rel="stylesheet" type="text/css" href="oxygen-webhelp/resources/css/webhelp_topic.css"><!----></link>
<link rel="stylesheet" type="text/css" href="oxygen-webhelp/resources/skins/skin.css"><!----></link>
Note: Generated with Oxygen version 17.1, build number 2016020417.
In our content, webhelp .html files are in a sub-folder under the main index.html. The CSS reference must back out before pointing to the oxygen-webhelp folder. This is not happening when -- and only when -- the topic is chunked.
Is there a way to fix this situation? We would like to use chunking more in our production webhelp.