Is there a way to convert my old HTML-templates?
Grtz,
Jeroen
Printable View
Is there a way to convert my old HTML-templates?
Grtz,
Jeroen
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.Quote:
Originally Posted by Jeroen
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:
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.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...}
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