# HTML Export

**URL:** <https://community.mp3tag.de/t/html-export/17152>\
**Category:** Allgemein\
**Created:** [August 15, 2015, 1:56pm UTC](https://community.mp3tag.de/t/html-export/17152 "2015-08-15T13:56:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Seranto](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/77aa72/32.png) [@Seranto](https://community.mp3tag.de/u/Seranto)\
**Post date:** [August 15, 2015, 1:56pm UTC](https://community.mp3tag.de/t/html-export/17152/1 "2015-08-15T13:56:30Z")

</div>

Hallo zusammen

Ich bin neu hier und brauche auch gleich mal eure Hilfe.

Ich möchte gerne meine Titel so in einer Playlist ausgeben dass sie nach der Tracknummer sortiert sind.

Dazu möchte ich gerne das gleiche Format verwenden wie die originale **html\_mp3tag** nur eben dass es mir die Titel nach Tracknummern sortiert.

Ich habe es so modifiziert dass die Tracknummer am Anfang steht, aber es wird nicht nach der Titelnummer sortiert sondern nach Interpret.

Das hier ist eine Kopie der originalen **html\_mp3tag** , die ich bearbeitet habe sodass es mir meine gewünschte Reihenfolge anzeigt. Nur hätte ich es gerne so, wie schon gesagt, dass nach Tracknummern sortiert wird.

```
$filename(html,utf-8)
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de">
<head>
	<meta name="GENERATOR" content="Mp3tag - <a href="http://www.mp3tag.de&quot;" target="_blank">http://www.mp3tag.de"</a> />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Mp3tag - Trackliste</title>
	<style type="text/css"><!--
		h1 { font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 14pt; color: #960000 }
		body { font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 8pt; background: #f90 }
		table, tr, td { font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 9pt; color: #000; }
		a:link, a:visited, a:active { text-decoration: none; color: #03f; }
		a:hover { text-decoration: none; color: #f03; }
		.title { font-weight: bold; padding: 7px; margin: 0px; color: #960000; }
		.odd { background-color: #fc0; }
	--></style>
</head>
<body>
	<h1>Mp3tag - Trackliste</h1>
	<p>%_date%</p>
	<table>
		<tr>
			<th class="title">Track</th>
			<th class="title">Interpret</th>
			<th class="title">Titel</th>
			<th class="title">Dateiname</th>
			<th class="title">Genre</th>
			<th class="title">Album</th>
			<th class="title">Jahr</th>
			<th class="title">Kommentar</th>
			
		</tr>

$loop(%_filename_ext%)
		<tr>
			<td$if($odd(%_counter%), class="odd",)>%track%</td>
			<td$if($odd(%_counter%), class="odd",)>%artist%</td>
			<td$if($odd(%_counter%), class="odd",)>%title%</td>
			<td$if($odd(%_counter%), class="odd",)>%_filename_ext%</td>
			<td$if($odd(%_counter%), class="odd",)>%genre%</td>
			<td$if($odd(%_counter%), class="odd",)>%album%</td>
			<td$if($odd(%_counter%), class="odd",)>%year%</td>
			<td$if($odd(%_counter%), class="odd",)>%comment%</td>
			
		</tr>
$loopend()

	</table>
	<p>erstellt am %_date%</a></p>
</body>
</html>

```

Kann mir bitte den Code jemand modifizieren damit das funktioniert?

Vielen lieben Dank schon mal für eure Hilfe

LG, Seranto

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [August 15, 2015, 3:18pm UTC](https://community.mp3tag.de/t/html-export/17152/2 "2015-08-15T15:18:55Z")

</div>

> [@Seranto](#):
>
> ...  
> Ich möchte gerne meine Titel so in einer Playlist ausgeben dass sie nach der Tracknummer sortiert sind.
> 
> Dazu möchte ich gerne das gleiche Format verwenden wie die originale **html\_mp3tag** nur eben dass es mir die Titel nach Tracknummern sortiert.  
> ...

Du müsstest die Zeile

$loop(%\_filename\_ext%)

ändern zu  
$loop(%track%)

ABER: das funktioniert dann natürlich nur vernünftig, wenn jede TRACK Nummer nur 1x vorkommt.

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [August 16, 2015, 7:05am UTC](https://community.mp3tag.de/t/html-export/17152/3 "2015-08-16T07:05:28Z")

</div>

> [@Seranto](#):
>
> ... Ich möchte gerne meine Titel so in einer Playlist ausgeben dass sie nach der Tracknummer sortiert sind. Dazu möchte ich gerne das gleiche Format verwenden wie die originale **html\_mp3tag** nur eben dass es mir die Titel nach Tracknummern sortiert. ...

**01: $filename($getEnv('USERPROFILE')'\Desktop\Seranto.html',UTF-8)** 

02: '\<?xml version="1.0" encoding="utf-8"?\>'  
03: ''  
04: ''  
05: ''  
06: ''  
07: ''  
08: 'Mp3tag - Dateiübersicht'  
09: '\<!--'  
10: 'h1 { font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 14pt; color: #960000 }'  
11: 'body { font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 8pt; background: #f90 }'  
12: 'table, tr, td { font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 9pt; color: #000; }'  
13: 'a:link, a:visited, a:active { text-decoration: none; color: #03f; }'  
14: 'a:hover { text-decoration: none; color: #f03; }'  
15: '.title { font-weight: bold; padding: 7px; margin: 0px; color: #960000; }'  
16: '.odd { background-color: #fc0; }'  
17: '--\>'  
18: ''  
19: ''  
20: '

# Mp3tag - Dateiübersicht
**'  
21: '**

**'%\_date%'**

**'  
22: ''  
23: ''  
24: ''  
25: ''  
26: ''  
27: ''  
28: ''  
29: ''  
30: ''  
31: ''  
32: $loop($num(%TRACK%,3))  
33: $if($odd(%\_counter%),'','')  
34: ''  
35: ''  
36: ''  
37: ''  
38: ''  
39: ''  
40: ''  
41: ''  
42: $loopend()  
43: '**

**| Track | Titel | Interpret | Album | Jahr | Genre | Dateiname |
| --- | --- | --- | --- | --- | --- | --- |
|
| |
| '%TRACK%' | '%TITLE%' | '%ARTIST%' | '%ALBUM%' | '%YEAR%' | '%GENRE%' | '%\_filename\_ext%' |**

**'  
44: ''  
45: ''**

[20150816.Seranto.html\_mp3tag.zip](https://community.mp3tag.de/uploads/default/original/2X/2/2f6986810fc17b010c06e37f7b281f19eae51b60.zip) (911 Bytes)  
DD.20150816.1111.CEST

[20150816.Seranto.html\_mp3tag.zip](https://community.mp3tag.de/uploads/default/original/2X/2/2f6986810fc17b010c06e37f7b281f19eae51b60.zip) (911 Bytes)
