Remove index from the mobile output

Oxygen general issues.
SusanCampbell01
Posts: 9
Joined: Fri Jan 24, 2014 9:36 pm

Remove index from the mobile output

Post by SusanCampbell01 »

Hello,

I'd like to remove the index tab from the mobile output, but I'm not sure how to do that. Does anyone know? I've read other posts that say the index will not be generated if the topics do not have index terms. My topics do have index terms, but I don't want the index to appear for mobile.

Any ideas on how to do this?
Thanks,
Susan
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Remove index from the mobile output

Post by sorin_ristache »

Hello,

A quick way of hiding the Index tab is to remove the following lines:

Code: Select all


    <xsl:if test="count($index/*) > 0">
<li><a href="#indexPage" data-role="tab" data-icon="info">
<xsl:if test="$selected = 'indexPage'">
<xsl:attribute name="class">ui-btn-active</xsl:attribute>
</xsl:if>
<xsl:call-template name="getWebhelpString">
<xsl:with-param name="stringName" select="'Index'"/>
</xsl:call-template>
</a></li>
</xsl:if>
from the template with the attribute name="create-navigation" in the following file:

Code: Select all

[Oxygen-install-dir]\frameworks\dita\DITA-OT\plugins\com.oxygenxml.webhelp\xsl\dita\mobile\createMainFiles.xsl
Repeating the Webhelp - Mobile transformation after this change should hide the Index tab in the output.

Regards,
Sorin
SusanCampbell01
Posts: 9
Joined: Fri Jan 24, 2014 9:36 pm

Re: Remove index from the mobile output

Post by SusanCampbell01 »

Great! Thank you for your help. I followed your instructions and the index no longer appears in the mobile output.

Thanks again,
Susan
Post Reply