Author Topic: Show list with placement?  (Read 621 times)

adac

  • Jr. Member
  • **
  • Posts: 34
Hello everyone,

somehow I can't manage it myself.

I have a custom tag "List". Here I collect various lists with placements.

Example:

List 1 # 001; List 2#098; List 3 #06 or
List 6#0100; List 2 #094

Now I display the lists (list x) without placement (# xxx). That works so far. I would like the albums to be displayed to me in the order of placement (# xxx)

How do I find out which list is currently displayed so that I only see the rankings of the corresponding list?

List 2
#094
#098

and not
List 2
#0100#094

I hope that I have expressed myself clearly.

hiccup

  • Hero Member
  • *****
  • Posts: 8010
If I understand correctly:

- You are using one single custom tag named 'List'

- You are populating this custom tag not only with what you call 'placements' (#001 #005 #199 etc.) but also with an additional 'List' attribute, them being 'List 1', 'List 2', 'List3', etc.

So that custom tag contains a mix of two different hierarchies, them being 'List#' and 'placement#', both gathered into a single custom tag?
Obviously any software will just see these values and will have no 'opinion' on them at all.

If my assumptions on what you are doing and are trying to do are correct, at this very moment I don't have a simple solution.
The only thing that comes to mind is creating a virtual tag with some advanced regex code smart enough to know what-is-what in this 'List' tag of yours.
 

frankz

  • Hero Member
  • *****
  • Posts: 3868
I'll admit I don't fully understand what this is being used for, but I'm guessing it would be infinitely easier to create the lists and put the tracks in the desired placement in those lists than to try to do this with tags.

What am I missing?

hiccup

  • Hero Member
  • *****
  • Posts: 8010
What am I missing?
Not much I think.
We'll have to await further clarification by the OP, but for now my thought is that he should use two custom tags instead of one for this.

1. List#
2. Placement#

After that things should be pretty easy.

adac

  • Jr. Member
  • **
  • Posts: 34
Hi, thank you for your time.

I'll try to clarify my problem a little more.

As an example I take the following:

Album Horses by Patti Smith and the self-titled album by The Velvet Underground & Nico
This album is represented in the following lists:

Patti Smith - Horses
Rolling Stone: 100 Best Debut Albums of All Time [2022] #005
Rolling Stone: 500 Greatest Albums of All Time [2003] #044
1001 Albums You Must Hear Before You Die [2005] # 0341

Filed in the "List" tag as: Rolling Stone: 100 Best Debut Albums of All Time [2022] # 005; Rolling Stone: 500 Greatest Albums of All Time [2003] #044; 1001 Albums You Must Hear Before You Die [2005] # 0341

The Velvet Underground & Nico
Rolling Stone: 100 Best Debut Albums of All Time [2022] #003
Rolling Stone: 500 Greatest Albums of All Time [2003] #013
1001 Albums You Must Hear Before You Die [2005] # 0091

Stored in the “List” tag as: Rolling Stone: 100 Best Debut Albums of All Time [2022] #003; Rolling Stone: 500 Greatest Albums of All Time [2003] #013;
1001 Albums You Must Hear Before You Die [2005] # 0091

Adding these to the album now is no problem.
But I would like to go the opposite way.

I have the lists "lists without placement" displayed via a virtual day (without placement):

Result:
Rolling Stone: 100 Best Debut Albums of All Time [2022]
Rolling Stone: 500 Greatest Albums of All Time [2003]
1001 Albums You Must Hear Before You Die [2005]

Now when I select a value from the list I want to see the order of the individual list.

Rolling Stone: 100 Best Debut Albums of All Time [2022]
#003 (The Velvet Underground & Nico)
#005 (Patti Smith - Horses)
or
Rolling Stone: 500 Greatest Albums of All Time [2003]
#013 (The Velvet Underground & Nico)
#044 (Patti Smith - Horses)

The albums and artists in brackets only serve as an overview in this example.

How do I know which list is currently selected?
My mistake in thinking is that all the placements are always picked out for me. Example at Patti Smith "#005 #044 #034".
No matter which of the three lists I select, it always comes up "# 005 #044 # 034" instead of, for example, Rolling Stone: 500 Greatest Albums of All Time [2003] with the result "# 044"

Unfortunately I have to work with a translator and I hope I was able to express my problem clearly enough.

frankz

  • Hero Member
  • *****
  • Posts: 3868
I think the trouble I'm having is figuring out what you are actually using this information for.  Is it just for display, or for information while you're listening to the album, or is it to be able to recreate these lists on the fly, or for some other reason?

How to best manage it is pretty dependent on how you're using it.

adac

  • Jr. Member
  • **
  • Posts: 34
I hope the picture says more. This is something it should look like, but here only one query was made for a list, so it looks good at first with the placement 003, 005, 096.


frankz

  • Hero Member
  • *****
  • Posts: 3868
OK seems like you're looking for more like a database kind of cross-tab functionality which I can't think of any way to accomplish in MB so I will leave it to the more able minds of the forum to contemplate this.

hiccup

  • Hero Member
  • *****
  • Posts: 8010
It's still not completely clear to me what you are trying to do, but here is a thought that may be useful:

It uses one custom tag, and a virtual tag for each list you are interested in.

Let's take these three as an example:

RS best debute albums
RS 500 best albums ever
1001 albums you must hear

we will reference them in the custom tag as simply: a, b and c.

Create a custom tag named: list-ranking

When an album has ranking #3 in the first list you populate its custom tag list-ranking like this:
a#3

When an album has ranking #1 in the third list, you populate the tag like this:
c#1

When an album is in more lists you do:
a#3 b#15 c#9
etc.

Next you create virtual tags for each list:

name:
RS best debute albums
code:
$IsNull(<list-ranking>,,$Split($Split(<list-ranking>,a,2)," ",1))

name:
RS 500 best albums ever
code:
$IsNull(<list-ranking>,,$Split($Split(<list-ranking>,b,2)," ",1))

name:
1001 albums you must hear
code:
$IsNull(<list-ranking>,,$Split($Split(<list-ranking>,c,2)," ",1))


Now you can use these virtual tags for filtering on each specific list.

PS
Another thing that comes to mind is that the Tag Hierarchy Explorer can be handy for things like this.
So you may want to check that out too.
 

adac

  • Jr. Member
  • **
  • Posts: 34
Hello and thank you again for your ideas. I'll take another look at it over the weekend and see if I can find a solution

The Incredible Boom Boom

  • Sr. Member
  • ****
  • Posts: 1290
I may be underthinking this, couldn't the original poster create a auto-playlists with the names of the lists and then use a Virtual Tag to match the name of the list to any tags that contain that list name? The sort order could then be another Virtual Tag that splits out the order number from the list name?