Using a different file extension

THESE PAGES ARE STILL UNDER CONSTRUCTION AND DO NOT NECESSARELY REFLECT THE CURRENT VERSION OF TÓPICO

It might be convenient to use a different file extension than HTML for your published files if, as an example, the output files are associated with a specific application.

Changing the output file extension

To change the output file extension, follow these steps.

  1. Select the Publishing tab page;
  2. On the General sub tab, type the desired extension in the text box at the right of the Add Extension check box.

This file extension is assigned to the output files during the publishing process.

Changing the Unordered List transformation for the menu

Now if you change the output file extension, the menu links might no longer point to the appropriate file names.

Follow these steps to change the file extension in the publication's menu.

  1. Click on the collection's template e button;
  2. Open map_to_ul_menu.xsl from the popup menu;
  3. Change the file extension, in bold in the sample below.
XSLT
<xsl:otherwise>
<!-- link prefix is empty, link to html -->
<xsl:attribute name="href"><xsl:value-of select="@id"/><xsl:text>.html</xsl:text></xsl:attribute>
</xsl:otherwise>		

When you publish your collection again, the new file extension will be use to build the menu.

Tip

If your map_to_ul_menu.xsl file looks more like the following line. It's because you have a later version of Tópico, where the transformation file was upgraded to use a template parameter.

XSLT
<xsl:otherwise>
<!-- link prefix is empty, link to html -->
<xsl:attribute name="href">
<xsl:value-of select="@id"/><xsl:text>.</xsl:text><xsl:value-of select="$file_extension"/>
</xsl:attribute>
</xsl:otherwise>			

In this case, changing the file extension in Tópico was all you needed to do.

THESE PAGES ARE STILL UNDER CONSTRUCTION AND DO NOT NECESSARELY REFLECT THE CURRENT VERSION OF TÓPICO

161 / 194