# Report with subtitles

**URL:** <https://community.mp3tag.de/t/report-with-subtitles/53790>\
**Category:** Support\
**Created:** [July 18, 2021, 10:30pm UTC](https://community.mp3tag.de/t/report-with-subtitles/53790 "2021-07-18T22:30:19Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jasantes](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/7ab992/32.png) [@Jasantes](https://community.mp3tag.de/u/Jasantes)\
**Post date:** [July 18, 2021, 10:30pm UTC](https://community.mp3tag.de/t/report-with-subtitles/53790/1 "2021-07-18T22:30:19Z")

</div>

Hi everybody. I would like to know if it is possible to export a report keeping the structure of subfolders as subtitles.  
Thanks for your help!

---

<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:** [July 19, 2021, 4:44am UTC](https://community.mp3tag.de/t/report-with-subtitles/53790/2 "2021-07-19T04:44:54Z")

</div>

An export is possible.  
Yet, I am not sure what you want to export.

> [@Jasantes](#):
>
> keeping the structure of subfolders as subtitles

Do you want to include the folder structure and add the label "Subtitle" do it?  
Do you want to use the contents of the field SUBTITLE and create a folder where the export file can be found?

---

<div class="post-metadata">

**Author:** ![Jasantes](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/7ab992/32.png) [@Jasantes](https://community.mp3tag.de/u/Jasantes)\
**Post date:** [July 19, 2021, 2:31pm UTC](https://community.mp3tag.de/t/report-with-subtitles/53790/3 "2021-07-19T14:31:51Z")

</div>

Thanks for your reply.  
I have a folder and several subfolders containing my mp3s. Every time I modify something, I export an html report, but there appears all the content mixed.  
What I am looking for is that the names are shown separated by subtitles, just as in the original structure.  
Regards.

---

<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:** [July 19, 2021, 2:41pm UTC](https://community.mp3tag.de/t/report-with-subtitles/53790/4 "2021-07-19T14:41:25Z")

</div>

So if you have an export script that works in principle but the sorting is order is not quite as you like it - you either have to show us the script or look which the correct sorting order would be and sort by that criterion. The $loop() statement starts the sorting.

---

<div class="post-metadata">

**Author:** ![Jasantes](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/7ab992/32.png) [@Jasantes](https://community.mp3tag.de/u/Jasantes)\
**Post date:** [July 19, 2021, 2:51pm UTC](https://community.mp3tag.de/t/report-with-subtitles/53790/5 "2021-07-19T14:51:31Z")

</div>

Ok, here is my script. What would I have to add to achieve my goal?

$filename(html,utf-8)\<?xml version="1.0" encoding="utf-8"?\>

 Mp3tag - File Overview 
# Mp3tag - File Overview

%\_date%

$loop(%\_filename\_ext%)

  
\<td$if($odd(%\_counter%), class="odd",)\>$replace(%artist%,&,&)  
\<td$if($odd(%\_counter%), class="odd",)\>$replace(%title%,&,&)  
\<td$if($odd(%\_counter%), class="odd",)\>$replace(%year%,&,&)  
\<td$if($odd(%\_counter%), class="odd",)\>$replace(%\_filename\_ext%,&,&)  
  
$loopend()

```
</table>
<p>build on %_date% with %_app% - the universal Tag Editor <a href="http://www.mp3tag.de/en/" title="Mp3tag Website">www.mp3tag.de</a></p>

```

| Artist | Title | Year | Filename |
| --- | --- | --- | --- |
|
| |

---

<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:** [July 19, 2021, 2:56pm UTC](https://community.mp3tag.de/t/report-with-subtitles/53790/6 "2021-07-19T14:56:30Z")

</div>

If you loop by %\_filename\_ext% then the filename is taken and the list sorted by that.  
If you think that sorting by \_PATH and then by TRACK will be better, try  
$loop(%\_path%$num(%track%,2))

---

<div class="post-metadata">

**Author:** ![Jasantes](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/7ab992/32.png) [@Jasantes](https://community.mp3tag.de/u/Jasantes)\
**Post date:** [July 19, 2021, 3:02pm UTC](https://community.mp3tag.de/t/report-with-subtitles/53790/7 "2021-07-19T15:02:47Z")

</div>

Ok, thanks. I'll try and then tell you.

---

<div class="post-metadata">

**Author:** ![Jasantes](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/7ab992/32.png) [@Jasantes](https://community.mp3tag.de/u/Jasantes)\
**Post date:** [July 19, 2021, 4:00pm UTC](https://community.mp3tag.de/t/report-with-subtitles/53790/8 "2021-07-19T16:00:50Z")

</div>

It did not work. I am not interested in the sort by tracks. I just want the sorting by filename, but under the name of each subfolder.

---

<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:** [July 19, 2021, 4:05pm UTC](https://community.mp3tag.de/t/report-with-subtitles/53790/9 "2021-07-19T16:05:37Z")

</div>

By now it should have become clearer how the sorting works.  
So you could also try $loop(%\_path%%\_filename%)

---

<div class="post-metadata">

**Author:** ![Jasantes](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/7ab992/32.png) [@Jasantes](https://community.mp3tag.de/u/Jasantes)\
**Post date:** [July 19, 2021, 6:30pm UTC](https://community.mp3tag.de/t/report-with-subtitles/53790/10 "2021-07-19T18:30:34Z")

</div>

Sorry, I'll try to express it in another way.  
What I want to see in the overview is the following:

Name of subfolder A  
Filenames  
Name of subfolder B  
Filenames  
Name of subfolder C  
Filenames

---

<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:** [July 19, 2021, 6:34pm UTC](https://community.mp3tag.de/t/report-with-subtitles/53790/11 "2021-07-19T18:34:53Z")

</div>

So you need 2 loops:  
$loop(%\_folderpath%)%\_directory%  
$loop(%\_filename%)%\_filename%  
$loopend()$loopend()

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [February 9, 2026, 12:29pm UTC](https://community.mp3tag.de/t/report-with-subtitles/53790/12 "2026-02-09T12:29:19Z")

</div>


