Page 1 of 1
Remove index from the mobile output
Posted: Fri Mar 07, 2014 11:04 pm
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
Re: Remove index from the mobile output
Posted: Mon Mar 10, 2014 5:47 pm
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
Re: Remove index from the mobile output
Posted: Mon Mar 10, 2014 6:53 pm
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