Navigation:  CATVids FAQ > Upgrading to the latest version >

Explorer templates

Previous pageReturn to chapter overviewNext page

If you want to use your own customized explorer templates from version 8 you need to make some modifications. Another options is to install the new templates, and then re-apply your customizations to the standard templates.

The CATVids setup program will ask if you want to install the new explorer templates that ship with CATVids v9. If you answer yes, your old template folder is backed up.

Note: You can download a zip file with the new templates from here (catvids9_xsl.zip).


UTF-8

All templates should be updated to use UTF-8 encoding. To do this, change

<?xml version="1.0" encoding="iso-8859-1"?>

to

<?xml version="1.0" encoding="utf-8"?>

and make sure you also save the file with UTF-8 encoding.

You can use this little program to do this automatically (back up your templates first!): ConvertTemplatesToUTF8.exe. Just click the ... button, select the \Explorer Templates folder, then click OK.


Index

Due to the number of changes required in the Index.xsl ("home page") template, we recommend you use the two new index templates: Index.xsl and Index_Statistics.xsl (available in the zip file).


Styles

We recommend you use the new Style.css file you find in the zip file.


GIF files

We recommend you use the updates GIF files you find in the zip file.


Item => Disc

To display the contents data on a video you need to replace "item" with "disc", "itemno" with "discno" and "items" with "disccount" in the following templates: Video.xsl, Video_Contents.xsl, VideoBrowse.xsl, and VideoBrowse_Right.xsl.

 

For example, replace

<xsl:apply-templates select="item"/>

with

<xsl:apply-templates select="disc"/>

 


Genre

Change "maingenreid" to "primarygenreid" and "maingenre/@id" to "primarygenre/@id" in the following templates: Common.xsl, Contents.xsl, ContentsBrowse.xsl, ContentsBrowse_Right.xsl, VideoBrowse.xsl, and VideoBrowse_Right.xsl.