Webhelp output - removing horizontal line above the footer

Oxygen general issues.
Rodrik
Posts: 30
Joined: Mon Jan 27, 2014 11:19 am

Webhelp output - removing horizontal line above the footer

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

Re: Webhelp output - removing horizontal line above the foot

Post 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:

Code: Select all

border-top:1px solid #eee;
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
Rodrik
Posts: 30
Joined: Mon Jan 27, 2014 11:19 am

Re: Webhelp output - removing horizontal line above the foot

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

Re: Webhelp output - removing horizontal line above the foot

Post 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
Rodrik
Posts: 30
Joined: Mon Jan 27, 2014 11:19 am

Re: Webhelp output - removing horizontal line above the foot

Post by Rodrik »

Thank you, Sorin.
Post Reply