Export to HTML

The "Export to HTML" option allows you to create an HTML file that will contain the full catalog in a portable format. You can upload this list on the web or give it to anybody that has a web browser.

The HTML file generated is based on a real HTML file. The program replaces special tags with movie and catalog information.

There are two templates: "Full" and "Individual". Old versions only had the "Full" template. The Full template is only one file, with the list of movies. Its name is the name that you select when you click "Export". The Individual template is one file per movie, with the information of each movie. By default the name is the name that you select when you click "Export" with the movie number appended at the end (you can change that in the Preferences window).

So if you export the catalog to "My movies.html" you will have:

- My movies.html -> The list of the movies, based on the template loaded "Full" tab
- My movies_1.html -> First movie, based on the template loaded in "Individual" tab
- My movies_2.html -> Second movie, based on the template loaded in "Individual" tab
- etc...

At the right of the template selection buttons ("Full"/"Individual" buttons) you can select if you want to export both templates or only the currently selected template.

All the tags begin with "$$". You do not really have to know them since you can add them with the "Insert Special Tag" menu. They include all the information that you can enter in the main window for a movie, but also the total number of movies, file name of the catalog, the current date and the current time.

There are two very important tags for the "Full" template: $$ITEM_BEGIN and $$ITEM_END. When creating the HTML file, the program will repeat the HTML code that is between these two tags for each movie. So all the tags begining by $$ITEM_ have to be placed between these two tags. On the other hand, these tags are useless for the "Individual" template.

The application includes sample templates that you can use or customize. Of course you can create a new one from scratch if you prefer, but I would recommend that you observer first this basic template:

    <html>
      <head><title>$$FILENAME</title></head>
      <body><table>
        $$ITEM_BEGIN
          <tr>
            <td>$$ITEM_NUMBER</td>
            <td>$$ITEM_ORIGINALTITLE</td>
            <td>$$ITEM_TRANSLATEDTITLE</td>
            <td>$$ITEM_DESCRIPTION</td>
          </tr>
        $$ITEM_END
      </table></body>
    </html>

Here we can see that the page will have the filename as title, and then a table listing all the movies. The program will write the <table> tag, and then repeat the <tr>...</tr> sequence for each movie since it is between $$ITEM_BEGIN and $$ITEM_END.

Here is a list of all the available tags:

- $$DATE = Current date
- $$TIME = Current time

> Catalog file properties:

- $$FILENAME = Catalog file name
- $$FILEPATH = Catalog file name with full path
- $$TOTALMOVIES = Number of movies in the catalog

- $$OWNER_NAME = Name specified in catalog properties
- $$OWNER_MAIL = E-mail
- $$OWNER_SITE = Website
- $$DESCRIPTION = Description

- $$ITEM_FILEINDIV = Filename of individual page for current movie
- $$ITEM_BEGIN = Begin of movie list
- $$ITEM_END = End of movie list

> Movie fields:

- $$ITEM_NUMBER = Number
- $$ITEM_CHECKED = State of the checkbox
- $$ITEM_MEDIA = Media label/barcode
- $$ITEM_TYPE = Media type
- $$ITEM_SOURCE = Source
- $$ITEM_DATEADD = Date added
- $$ITEM_BORROWER = Current borrower
- $$ITEM_RATING = Rating (0 to 10)
- $$ITEM_APPRECIATION = Appreciation, from 0 to 4 stars, using files appr*.gif
- $$ITEM_APPR10 = Appreciation, from 0 to 10 stars, using files appr10_*.gif
- $$ITEM_ORIGINALTITLE = Original title
- $$ITEM_TRANSLATEDTITLE = Translated title
- $$ITEM_FORMATTEDTITLE = Formatted title, as defined in the Preferences
- $$ITEM_FORMATTEDTITLE1 = Formatted title, as "Original title (Translated title)"
- $$ITEM_FORMATTEDTITLE2 = Formatted title, as "Translated title (Original title)"
- $$ITEM_DIRECTOR = Director
- $$ITEM_PRODUCER = Producer
- $$ITEM_COUNTRY = Country
- $$ITEM_CATEGORY = Category
- $$ITEM_YEAR = Year
- $$ITEM_LENGTH = Length in minutes
- $$ITEM_ACTORS = Actors list
- $$ITEM_URL = Website address (without link)
- $$ITEM_DESCRIPTION = Description
- $$ITEM_COMMENTS = Comments
- $$ITEM_VIDEOFORMAT = Video format/codec
- $$ITEM_VIDEOBITRATE = Video bitrate
- $$ITEM_AUDIOFORMAT = Audio format/codec
- $$ITEM_AUDIOBITRATE = Audio bitrate
- $$ITEM_RESOLUTION = Video resolution
- $$ITEM_FRAMERATE = Video framerate
- $$ITEM_LANGUAGES = Languages
- $$ITEM_SUBTITLES = Subtitles
- $$ITEM_SIZE = Files sizes
- $$ITEM_DISKS = Number of disks or tapes
- $$ITEM_PICTURE = Picture, embedded in a <img> tag
- $$ITEM_PICTUREFILENAME = Picture filename
- $$ITEM_CF_ + custom field TAG in upper case = Custom field value

> Labels of movie fields (according to selected language):

- $$LABEL_NUMBER = Number
- $$LABEL_CHECKED = State of the checkbox
- $$LABEL_MEDIA = Media label/barcode
- $$LABEL_TYPE = Media type
- $$LABEL_SOURCE = Source
- $$LABEL_DATEADD = Date added
- $$LABEL_BORROWER = Current borrower
- $$LABEL_RATING = Rating (0 to 10)
- $$LABEL_ORIGINALTITLE = Original title
- $$LABEL_TRANSLATEDTITLE = Translated title
- $$LABEL_FORMATTEDTITLE = Formatted title
- $$LABEL_DIRECTOR = Director
- $$LABEL_PRODUCER = Producer
- $$LABEL_COUNTRY = Country
- $$LABEL_CATEGORY = Category
- $$LABEL_YEAR = Year
- $$LABEL_LENGTH = Length in minutes
- $$LABEL_ACTORS = Actors list
- $$LABEL_URL = Website address
- $$LABEL_DESCRIPTION = Description
- $$LABEL_COMMENTS = Comments
- $$LABEL_VIDEOFORMAT = Video format/codec
- $$LABEL_VIDEOBITRATE = Video bitrate
- $$LABEL_AUDIOFORMAT = Audio format/codec
- $$LABEL_AUDIOBITRATE = Audio bitrate
- $$LABEL_RESOLUTION = Video resolution
- $$LABEL_FRAMERATE = Video framerate
- $$LABEL_LANGUAGES = Languages
- $$LABEL_SUBTITLES = Subtitles
- $$LABEL_SIZE = Files sizes
- $$LABEL_DISKS = Number of disks or tapes
- $$LABEL_PICTURE = Picture
- $$LABEL_AUDIOKBPS' = Unit of audio bitrate
- $$LABEL_VIDEOKBPS' = Unit of video bitrate
- $$LABEL_UNIT' = Unit of file size
- $$LABEL_FPS' = Unit of framerate
- $$LABEL_CF_ + custom field TAG in upper case = Label of custom field