QUOTE(foosion @ Sep 2 2004, 04:53 PM)
The album list plugin splits your hierarchy format into parts at pipe | characters. Those parts correspond to different levels in the hierarchy. If a part is not a formatting script, i.e. there are no percent or dollar signs, which means the value is a constant, the plugin assumes that part is the name of a tag. In that case, it adds an entry for each instance of that tag for a given track.
Ok, fine, I think I understand that. The problem is that I can't reproduce the same behaviour of plain "genre" within a formula.
Let's say I use the formatting string "genre|artist|album|title" in Albumlist.
I obtain a tree like this:
...[+]--Alternative
...[+]--Electronic
...[-]---Pop
.............[+]---Madonna
.............[-]----Aimee Mann
...............................[+]--Magnolia
...[-]---Soundtrack
..............[-]---Aimee Mann
...............................[+]--Magnolia
..............[+]---Ennio Morricone
That's fine. The Magnolia's multiple genre tag (GENRE=Pop, Soundtrack) is read correctly: I can find Magnolia album under "Pop" AND under "Soundtrack".
However, I would like to customise more deeply my genre tree, for example including a "No genre" node for untagged files or a "Other genres" node for non-standard genres according to my classification.
So, instead of plain "genre", I have to use a formula. My formatting string in Albumlist would be something like this: $if2(%genre%,--NO GENRE--)|artist|album|title
I obtain a tree like this:
...[+]----NO GENRE--
...[+]--Alternative
...[+]--Electronic
...[-]---Pop
.............[+]---Madonna
...[-]---Soundtrack
..............[+]---Ennio Morricone
...[-]---Soundtrack, Pop
..............[-]---Aimee Mann
...............................[+]--Magnolia
Unlike plain "genre", %genre% can be used within a formula. However, %genre% doesn't read the Magnolia's genre tag (GENRE=Soundtrack, Pop) as multiple value tag but just as a single value tag. In other words, "%genre%" behaves just like plain "genre", only, it doesn't read multiple tags correctly.
Do you know any workaround? How can I obtain a tree like this?
...[+]----NO GENRE--
...[+]--Alternative
...[+]--Electronic
...[-]---Pop
.............[+]---Madonna
.............[-]----Aimee Mann
...............................[+]--Magnolia
...[-]---Soundtrack
..............[-]---Aimee Mann
...............................[+]--Magnolia
..............[+]---Ennio Morricone
Sorry if I bored you and thank you very much for your help.