Results 1 to 2 of 2

Thread: Templates

  1. #1
    Guest Guest

    Default Templates

    Is there a way to convert my old HTML-templates?

    Grtz,
    Jeroen

  2. #2
    Join Date
    Feb 2009
    Posts
    1,549

    Default Re: Templates

    Quote Originally Posted by Jeroen
    Is there a way to convert my old HTML-templates?
    To start from, you don't have to convert them. You can copy your old templates to Templates folder and OrangeCD will pick them up.

    But if you really want to convert them to a new DAX format, it is quite easy to do.

    First, you need to create a new file with DAX extension and the following content:

    Code:
    ::start/web
    
    {contents of YourTemplate.html file goes here...}
    
    ::group/web
    
    {contents of YourTemplate_group.html goes here...}
    
    ::album/web
    
    {contents of YourTemplate_album.html goes here...}
    If you don't have _group or _album files, just skip the corresponding sections. Copy this file into the Templates folder. Now the file name should appear in the list of templates when you do HTML Export.

    You can try exporting using this template. Here is the list of problems that can (and probably will) occur with your new template after it has been ported from v4 format:

    1) GROUPFIELDNAME tag is not recognized:

    This tag is no longer supported. You need to replace it with FIELDNAME(field_name). Field_name is the field by which albums are grouped, for example: Artist, Category, Genre, Format, etc.

    Example: <!--[FieldName(Category)/]-->

    2) GROUP tag is not recognized:

    GROUP tag now requires an argument, so it should look like GROUP(field_name)

    Example: <!--[Group(Category)]--> .... <!--[/Group]-->

    3) ALBUM tag is not recognized:

    ALBUM tag now requires one or more arguments. The first argument must be ALL. All other arguments, starting from second, if they are present, denote the sort order.

    Example: <!--[Album(all,Artist,Title)]--> ... <!--[/Album]-->

    Let me know if you experience any problems with converting.

    Thanks,
    Andrei

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •