# HTML export number of albums help

**URL:** https://community.mp3tag.de/t/html-export-number-of-albums-help/48061
**Category:** Export
**Created:** [March 3, 2020, 3:22am UTC](https://community.mp3tag.de/t/html-export-number-of-albums-help/48061 "2020-03-03T03:22:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Lisbon\_Sasori](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/d2c977/32.png) [@Lisbon\_Sasori](https://community.mp3tag.de/u/Lisbon_Sasori)
#### Post date: [March 3, 2020, 3:22am UTC](https://community.mp3tag.de/t/html-export-number-of-albums-help/48061/1 "2020-03-03T03:22:23Z")

</div>

I need to add this feature to my export configuration and I am stuck.

This is the idea: In the box where the album title is, add a line for each album that counts the number of albums and reads for example:

- Album 6 / 23

I understand how to generate the 6, but the 23 remains a mystery to me...

The placeholder %\_max\_counter% does not work in this config and there is no global placeholder to total number of albums, just for total number of files and total file size and total playing time.

Am I missing something?  
I will be very grateful for any help anyone can provide.

**Screenshot of sample html page displaying album counting error**

 ![error](https://community.mp3tag.de/uploads/default/original/2X/9/9380228d705371e1916bfe3c7dbaefd07f19ea4c.png)

---

<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: [March 3, 2020, 6:28am UTC](https://community.mp3tag.de/t/html-export-number-of-albums-help/48061/2 "2020-03-03T06:28:13Z")

</div>

Here is a thread that deals with the export of totals:

> [@How to set TOTALDISCS and TOTALTRACKS?](https://community.mp3tag.de/t/how-to-set-totaldiscs-and-totaltracks/12767):
>
> Sometimes there is the need to enumerate a large amount of files, which relate to different data media, e.g. album with 27 files stored on three CDs. It would be helpful to have a tag-field, automatically created into the track file, which holds the total amount of discs per album. Today Mp3tag has no readymade built-in support for this purpose, but we are not lost at all. We can use the Mp3tag services "export" and "actions" to proceed the enumeration automatically, to get the total values of…

---

<div class="post-metadata">

### Author: ![Lisbon\_Sasori](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/d2c977/32.png) [@Lisbon\_Sasori](https://community.mp3tag.de/u/Lisbon_Sasori)
#### Post date: [March 4, 2020, 11:17am UTC](https://community.mp3tag.de/t/html-export-number-of-albums-help/48061/3 "2020-03-04T11:17:51Z")

</div>

Thank you so much for your suggestion ohrenkino, but I decided to go on a different path.

After playing around with the export configuration code for a while, I thought the easiest way for me to solve this "pain in my neck" was to make use of the local storage built into the web browser.

And, I have found a solution that works for me.  
The code is not very elegant but it seems to do the job required.  
I will leave it here for your consideration.  
It's just a first working code, feel free to improve it.

[html\_sasori\_en\_WithoutPlayButton\_v2.mte](https://community.mp3tag.de/uploads/short-url/wWAbp06jQXfy1O1bDfqElAoCarl.mte) (3.2 KB)

**Screenshot of the same previous html page displaying album counting accurately**

 ![p2](https://community.mp3tag.de/uploads/default/original/2X/8/832bc1a81352bdbaa8d911b3e2d716755a760701.png)
