# export L\_albumlist\_js\_ex

**URL:** https://community.mp3tag.de/t/export-l-albumlist-js-ex/2790
**Category:** Support
**Created:** [January 16, 2006, 6:36pm UTC](https://community.mp3tag.de/t/export-l-albumlist-js-ex/2790 "2006-01-16T18:36:28Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![The\_Dragon\_NL](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/c2a13f/32.png) [@The\_Dragon\_NL](https://community.mp3tag.de/u/The_Dragon_NL)
#### Post date: [January 16, 2006, 6:36pm UTC](https://community.mp3tag.de/t/export-l-albumlist-js-ex/2790/1 "2006-01-16T18:36:28Z")

</div>

Hi  
I got a problem with the export mte file L\_albumlist\_js\_ex.

I have a numerous amount of mp3 files \>15.000  
Now the problem is that the numbers off albums isn't right.  
But i got no problems with that.

The problem lies in the not showing the songs beneath a album.  
It almost always occurs when the artist has 1 song under a (collection) album.

I tried to fix it myself, but i'm a compleet noob at javascript or any internet language.

Dano.  
Can you please help me out.  
I really like this one.  
I would really like this one to work.

The Dragon NL

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [January 16, 2006, 9:34pm UTC](https://community.mp3tag.de/t/export-l-albumlist-js-ex/2790/2 "2006-01-16T21:34:07Z")

</div>

Well I have no real problems with it and I don't really understand what you mean..

---

<div class="post-metadata">

### Author: ![The\_Dragon\_NL](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/c2a13f/32.png) [@The\_Dragon\_NL](https://community.mp3tag.de/u/The_Dragon_NL)
#### Post date: [January 17, 2006, 3:10pm UTC](https://community.mp3tag.de/t/export-l-albumlist-js-ex/2790/3 "2006-01-17T15:10:25Z")

</div>

> [@](#):
>
> Well I have no real problems with it and I don't really understand what you mean..
> 
> \<{POST\_SNAPBACK}\>

I've included the generated HTM file, zipped ofcourse.  
Just for example click on barbara streisand.  
it has one album and 1 song under that album  
Now only a few will fold-out, so you can see and play the song.

Or is there an explorer settings that ruins it?

[L\_albumlist\_js\_ex.zip](https://community.mp3tag.de/uploads/default/original/2X/e/eb6b7d8c0f5daa0d271ade2c23b4431d03ad394f.zip) (6.38 KB)

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [January 17, 2006, 5:31pm UTC](https://community.mp3tag.de/t/export-l-albumlist-js-ex/2790/4 "2006-01-17T17:31:28Z")

</div>

You have an album with various artists, that's the problem.  
The script first goes through all the artists and since this album has different artists it gets split up.  
This is because I want the output to be  
Artist A

- Album 1
- Album 2
- Album 3  
Artist B
- Album 1
- Album 2

and not  
Artist A - Album 1  
Artist A - Album 2  
Artist A - Album 3  
Artist B - Album 1  
...

---

<div class="post-metadata">

### Author: ![The\_Dragon\_NL](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/c2a13f/32.png) [@The\_Dragon\_NL](https://community.mp3tag.de/u/The_Dragon_NL)
#### Post date: [January 17, 2006, 8:59pm UTC](https://community.mp3tag.de/t/export-l-albumlist-js-ex/2790/5 "2006-01-17T20:59:41Z")

</div>

So , are you saying it doens't work with various artists?

Is it possible that it will work, with some modifications?

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [January 17, 2006, 9:50pm UTC](https://community.mp3tag.de/t/export-l-albumlist-js-ex/2790/6 "2006-01-17T21:50:33Z")

</div>

Well you can either change to html\_dano\_albumlist\_js\_f config and drop the first structure I described or in the next Mp3tag version there will be 2 methods to realize it with the albumlist\_js\_ex config.  
1 method will require an additional BAND tag and the other a certain directory structure.

---

<div class="post-metadata">

### Author: ![The\_Dragon\_NL](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/c2a13f/32.png) [@The\_Dragon\_NL](https://community.mp3tag.de/u/The_Dragon_NL)
#### Post date: [January 19, 2006, 6:37pm UTC](https://community.mp3tag.de/t/export-l-albumlist-js-ex/2790/7 "2006-01-19T18:37:28Z")

</div>

Ok.

Another Quistion.  
Is it possible to only write where %album% starts with A or B etc.

Cause if it is, then i'll try to write a script that will create a htm with that starting letter.  
If it is possible to create a htm page inside the script it self.

Can you try to explain to me how i should do that.

Of course if it works ill send it to you

Thanks

---

<div class="post-metadata">

### Author: ![The\_Dragon\_NL](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/c2a13f/32.png) [@The\_Dragon\_NL](https://community.mp3tag.de/u/The_Dragon_NL)
#### Post date: [January 19, 2006, 7:45pm UTC](https://community.mp3tag.de/t/export-l-albumlist-js-ex/2790/8 "2006-01-19T19:45:22Z")

</div>

> [@](#):
>
> Ok.
> 
> Another Quistion.  
> Is it possible to only write where %album% starts with A or B etc.
> 
> Cause if it is, then i'll try to write a script that will create a htm with that starting letter.  
> If it is possible to create a htm page inside the script it self.
> 
> Can you try to explain to me how i should do that.
> 
> Of course if it works ill send it to you
> 
> Thanks
> 
> \<{POST\_SNAPBACK}\>

Ok, ignore the previous question.  
Found it using the $mid(%artist%,,1) command

It is possible to create a script that will call another script using predefines variabels

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [January 20, 2006, 1:16pm UTC](https://community.mp3tag.de/t/export-l-albumlist-js-ex/2790/9 "2006-01-20T13:16:16Z")

</div>

> [@](#):
>
> It is possible to create a script that will call another script using predefines variabels

No. This is not possible.

Best regards,  
~ Florian

---

<div class="post-metadata">

### Author: ![The\_Dragon\_NL](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/c2a13f/32.png) [@The\_Dragon\_NL](https://community.mp3tag.de/u/The_Dragon_NL)
#### Post date: [January 20, 2006, 5:25pm UTC](https://community.mp3tag.de/t/export-l-albumlist-js-ex/2790/10 "2006-01-20T17:25:28Z")

</div>

> [@](#):
>
> No. This is not possible.
> 
> Best regards,  
> ~ Florian
> 
> \<{POST\_SNAPBACK}\>

Ok, bummer.

I'm trying to create a list depending on the input value of the export screen.  
But i can't seem to get the if-statement working

if ($mid(%artist%,,1) = %\_listselection%)  
{  
do somethings  
}

Can you help me?

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [January 20, 2006, 5:59pm UTC](https://community.mp3tag.de/t/export-l-albumlist-js-ex/2790/11 "2006-01-20T17:59:49Z")

</div>

$if($eql($mid(%artist%,,1),%\_listselection%),do this if statement true,do this if statement false)

---

<div class="post-metadata">

### Author: ![rickdog](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/ec9cab/32.png) [@rickdog](https://community.mp3tag.de/u/rickdog)
#### Post date: [August 31, 2009, 8:32pm UTC](https://community.mp3tag.de/t/export-l-albumlist-js-ex/2790/12 "2009-08-31T20:32:31Z")

</div>

> [@The Dragon NL](#):
>
> So , are you saying it doens't work with various artists?
> 
> Is it possible that it will work, with some modifications?

The problem is this:  
the show() javascript function toggles the visibility of the containing the tracks. The ID of this TD is assigned the value "id" + the album name. In Various Artist albums the album name is repeated under each artist, therefore there will be a with identical ID's under each artist. The show function uses getElementById which returns the first element for the given ID.

**%album%**

To correct the problem you need to assign the TDs unique IDs. You can use the counter to do this, or use the Random function

---

<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:19pm UTC](https://community.mp3tag.de/t/export-l-albumlist-js-ex/2790/13 "2026-02-09T12:19:36Z")

</div>


