Page 1 of 1
Webhelp output - removing horizontal line above the footer
Posted: Fri Mar 28, 2014 10:57 am
by Rodrik
In the webhelp output there is a fine grey horizontal line that appears at the bottom of each page (and above the footer if there is one). It is a div with a border-top:
Code: Select all
<div style="border-top-color: rgb(238, 238, 238); border-top-width: 1px; border-top-style: solid;"><!-- --></div>
I'd appreciate if you could tell me where this comes from and how to get rid of it.
Regards
Rodrik
Re: Webhelp output - removing horizontal line above the foot
Posted: Fri Mar 28, 2014 1:11 pm
by sorin_ristache
Hello,
What Oxygen version do you use? In version 15.2 the horizontal line is created by the element
Code: Select all
<div style="border-top: 1px solid #EEE;"><!-- --></div>
and you remove this element by commenting out or removing the following line in file
[Oxygen-15.2-install-dir]\frameworks\dita\DITA-OT\plugins\com.oxygenxml.webhelp\oxygen-webhelp\resources\css\webhelp_topic.css:
and also the following line in file
[Oxygen-15.2-install-dir]\frameworks\dita\DITA-OT\plugins\com.oxygenxml.webhelp\oxygen-webhelp\resources\skins\desktop\toc_driver.js:
Code: Select all
$('#frm').contents().find('.navfooter').before('<div style="border-top: 1px solid #EEE;"><!-- --></div>').hide();
Starting with the next version of Oxygen we will make that customization easier by adding a class attribute to this div element so that a simple
display:none added in the CSS file (or even in a custom CSS file set in the
args.css parameter of the DITA transformation) will be enough for hiding it.
Regards,
Sorin
Re: Webhelp output - removing horizontal line above the foot
Posted: Mon Apr 07, 2014 11:50 am
by Rodrik
Thank you very much for your help -- I am using 15.2. Adding a class attribute would help -- I've been trying to restrict my customisation of the output to CSS changes as far as possible.
Another one that you might want to take a look at is the <div> that encloses individual related links, which also has no class attribute.
Regards
Rodrik
Re: Webhelp output - removing horizontal line above the foot
Posted: Mon Apr 07, 2014 3:40 pm
by sorin_ristache
Hi Rodrik,
We will also add a class attribute on the <div> element of each individual related link. You can implement that in version 15.2 by adding the following template in the file
[Oxygen-install-dir]\frameworks\dita\DITA-OT\plugins\com.oxygenxml.webhelp\xsl\dita\desktop\fixup.xsl:
Code: Select all
<xsl:template match="//*[contains(@class,'relinfo')]/div
| //*[contains(@class,'linklist')]/div"
mode="fixup_desktop">
<xsl:copy>
<xsl:apply-templates select="@*" mode="fixup_desktop"/>
<xsl:choose>
<xsl:when test="@class">
<xsl:attribute name="class"><xsl:value-of select="concat(@class, ' related_link')"/></xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="class">related_link</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:apply-templates mode="fixup_desktop"/>
</xsl:copy>
</xsl:template>
Regards,
Sorin
Re: Webhelp output - removing horizontal line above the foot
Posted: Wed Apr 09, 2014 1:18 pm
by Rodrik
Thank you, Sorin.