Jump to content

Expand Collections by default in un-docked drawer


Recommended Posts

Posted

Some eons ago I followed @chef's instructions and got it working but since then Emby versions changed and can't figure out on my own how to do it. 

Right now I have a modified usersettingsbuilder.js file that keeps drawer closed by default. When I click on a hamburger it opens (but does not dock) and all My Media folders are shown there as intended. But when I click on 'Pin the Drawer' button it gets docked and additionally to all My Media folders the Collections are shown at the bottom, but they are collapsed. I have to click for the third time to make then all visible.

What files and how I need to modify so that with one click of a hamburger the drawer would open with all My Media and Collections already expanded?

@Happy2Play @visproduction - maybe you guys would know something about it?

image.thumb.png.21aca988051699114e2669a2cdbeeac2.png

Happy2Play
Posted

You have to edit the navdrawercontent.js 

there are two data-expanded you need to change the first one to true as it is blank otherwise false.  The second one that is already true is for Playlists.

data-expanded="

to 

data-expanded="true"

similar here but this was for playlists.

image.thumb.png.11350a26b109c6bf3bb00bd91b4cb668.png

Posted

Ok, thanks, but this only solves the 2nd part of the problem which is expanding Collections by default. 

Right now I have to click the hamburger and than Pin the Drawer for the already expanded Collections to show (after just one click the whole Collection/Playlist part is missing).

But how to make Collections appear in the un-docked drawer in the first place?

Happy2Play
Posted
9 minutes ago, cochize1 said:

Ok, thanks, but this only solves the 2nd part of the problem which is expanding Collections by default. 

Right now I have to click the hamburger and than Pin the Drawer for the already expanded Collections to show (after just one click the whole Collection/Playlist part is missing).

But how to make Collections appear in the un-docked drawer in the first place?

Would have to look at the 4.7 file as this was a change in 4.8+.  So I would assume a complete rewrite of the js file.

Posted

So you think there is no simple modification as a solution to show Collections/Playlists in un-docked drawer?

If you're interested to poke around I'd appreciate that of course.

Happy2Play
Posted

@Lukeis there switches within the navdrawercontent.js to make Playlists/Collections drag and drop collapse section to be visible on undocked drawer the same way it used to be in 4.7?

Posted

You might be able to fiddle with data-expanded="xxx"

Posted
2 minutes ago, Luke said:

You might be able to fiddle with data-expanded="xxx"

I believe that only makes Collection/Playlists expanded or collapsed but does not make them to appear on the undocked drawer (when with docked drawer they are always shown regardless of what you set 'data-expanded' to)

Posted

Right OK, then yea there's no way to control this right now. 

  • Thanks 1

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...