MinimServer Forum
Sorting albums in one particular section - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: Support (/forumdisplay.php?fid=4)
+--- Thread: Sorting albums in one particular section (/showthread.php?tid=6960)



Sorting albums in one particular section - edj - 10-07-2023 10:48

I think I may have asked this before - but can't see where so apologies.

I use a custom tag "Bought" to record the year and month I bought/added music to my library: YY.MM

I currently have a top level menu called "-Bought" that sorts as expected:
23.07
23.06
23.05
etc.

When I click on one of those entries it shows the same options as per the top level menu (Albums, Artist, Genre etc), also as expected.

Is it possible for Minim to instead show a list of Album straight away once I click on "-Bought", where they are sorted first by -Bought, and then by Album ?

Essentially what I am trying to do is go straight from the top level menu into a list of albums, sorted in reverse by a particular tag "Bought".

Edit:
1. I'm not keen on using the inbuilt Recently Added function because I often update music that I have acquired in the past with better quality copies.
2. Around a third of my library has no entry in Bought, so I would like to either exclude them, or have htem at the bottom of the list...
3. I don't want to change the default sort order! Just for the Bought menu.


RE: Sorting albums in one particular section - simoncn - 10-07-2023 11:15

If you set listViewAlbums to all, the Bought index on the top-level index (including Bought) will take you to a list of Bought dates (as at present). When you select a Bought date, you will immediately get a list of albums matching that date.

Alternatively (or additionally), you can customise the sort order of the top-level 'n albums' list so that the albums in this list are sorted first by reverse Bought date, then by album name. To do this, set the tagOptions property to

Album.sortTags={-Bought, Album}


RE: Sorting albums in one particular section - edj - 11-07-2023 11:11

Thanks Simon. My problem with this method is that it changes the sorting for 'n albums' as well as "Bought". It also sticks albums without a Bought tag at the top (when sorted by '-Bought').

Is it possible to apply the sorting to "Bought" only? And to "skip" the menu/tree that lists all of the different bought dates, and just lists ALL albums by the Bought tag, but in reverse? the I think it might be a no...


RE: Sorting albums in one particular section - simoncn - 11-07-2023 12:04

The album sort order is the same for all album lists.

To move albums without a Bought tag to the end of the list when sorted in reverse order, you could set the tagValue property to

Bought.default= {'0'}

This causes MinimServer to use a default value Bought=0 for all files without a Bought tag.

When selecting the Bought index, it isn't possible to skip the menu that shows all the Bought dates.


RE: Sorting albums in one particular section - edj - 11-07-2023 16:43

Perfect, thank you Simon