Jump to content

Hide Playlists from Included In section?


Recommended Posts

Posted

Hi, Presently the music Included In section on the individual Artist pages shows both Collections and Playlists. Ideally, I would like them both shown on their own separate rows, but was wondering, as a first step, if there was a simple way to just hide the Playlists using CSS?

When looking at the CSS of the div.appearsOnLIstsSection,  it seems that an underlying Collection and Playlist have an identical structure, so it doesnt seem possible to differentiate and target just Playlists?

Is there anything obvious/easy that I am missing or do I need other method beyond CSS? Thanks!

GrimReaper
Posted (edited)
On 3/21/2026 at 2:52 AM, user24 said:

was wondering, as a first step, if there was a simple way to just hide the Playlists using CSS?

Is there anything obvious/easy that I am missing or do I need other method beyond CSS?

As you've already surmised, it can't be done by CSS alone, you'd need to do it via js script (though it shouldn't take more than a few minutes to set that up). Note that you'd have to repeat that on each server update (not that often/tedious either, I have several scripts of my own, for different purposes).

Edit: If you wanna play with it, place the script in your server's \system\dashboard-ui folder; in the same folder, edit index.html and add a line at the very bottom: 

script src="hide_playlists.js"></script>

image.png.014948c8c5f98b46ce4324f197fc04d8.png

Hard-refresh browser (Ctrl+F5) or restart server.

Edited by GrimReaper
Script removed
  • Thanks 1
GrimReaper
Posted (edited)
On 3/21/2026 at 2:52 AM, user24 said:

Ideally, I would like them both shown on their own separate rows

Updated version.

image.png.9e682f67441ac92849ea2ae1b6d1cf43.png

 

playlist_row.js

Edited by GrimReaper
  • Thanks 1
user24
Posted

@GrimReaper Thanks for the script... I played around with it for a bit. With a simple 1 Collection, 1 Playlist it works perfectly, but with more Collections there seems to be SPA/DOM timing issues??? Here are some results:

  • C P works well
  • C C C C P P works, though the spacing between all cards, in the new Playlists row only, is much wider than normal
  • C C C C C C C C P P P P P P only the first P appears in the new Playlists row, the rest remain in the new Collections row, with a one card  'missing' gap from C to P (picure below)
  • C C C C C C C C C C C C C C C C P P P P P P P P everything remains in the new Collections row

image.thumb.png.b9ee11555d9a1b14746b07daa0542aa4.png

I'm not asking/wanting you to troubleshoot it for me (unless you want to for yourself). Just reporting on what I found and it was worth trying. I also have some additional complications when using this with my unrelated custom CSS that massively rearranges 'everything'. Anyway, this has at least got me started and I now have a couple of new ideas to try next:

  • Hide the 8 playlists, that are annoying me right now, with CSS by targeting their specific IDs (short-term, not scalable)
  • Use API to target Collections and Playlists for separating them (long-term, hopefully a viable solution)

Thanks again for your help!

GrimReaper
Posted (edited)

Try this version, it should handle larger number of items better:

1 hour ago, user24 said:

C C C C P P works, though the spacing between all cards, in the new Playlists row only, is much wider than normal

image.png.3ab85b08e13be45fc9c123e2f3d31baf.png

1 hour ago, user24 said:

C C C C C C C C P P P P P P only the first P appears in the new Playlists row, the rest remain in the new Collections row, with a one card  'missing' gap from C to P (picure below)

image.thumb.png.7463a81ff4f375ba0a52ec807cbdf527.png

1 hour ago, user24 said:

C C C C C C C C C C C C C C C C P P P P P P P P everything remains in the new Collections row

image.thumb.png.9d0b80db9d88e10d9a7a688ec078ba46.pngimage.thumb.png.57bc9135215ba567d31246ef87c11858.png

playlist_row.js

Edited by GrimReaper

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...