Changing default music directory that is shown

Need help? Post your questions here.

Moderator: moderators

Changing default music directory that is shown

Postby NAvAP » Mon Aug 13, 2007 4:53 am

I have 3 music sources, the first is my regular music folder, second is music in a foreign language, and the third is the random stuff that doesnt belong in an album or whatever.

Now if I log in my left frame is populated with all the directories of the 2 sources that are not really as "important" for lack of a better word, and if I have a friend who wants to browse I'd rather him not get bombarded with foreign language artists and the like :roll:.

Ive tried playing around with left.jsp but as I dont know jsp it becomes a little hard to figure out how to write it properly.
Code: Select all
<select name="musicFolderId" style="width:100%" onchange="location='left.view?musicFolderId=' + options [selectedIndex].value;" >
     <option value="-1"><fmt:message key="left.allfolders"/></option>
     <c:forEach items="${model.musicFolders}" var="musicFolder">
            <option ${model.selectedMusicFolder == musicFolder ? "selected" : ""}

value="${musicFolder.id}">${musicFolder.name}</option>
     </c:forEach>
    </select>


Thats the code for the drop down box in left.jsp, is there a way to make option 3 selected by default. So that the generated html looks like:
Code: Select all
    <select name="musicFolderId" style="width:100%" onchange="location='left.view?musicFolderId=' + options[selectedIndex].value;" >
        <option value="-1">All folders</option>
       
            <option  selected value="3">My Music</option>
       
            <option  value="4">Hindi</option>
       
            <option  value="5">Random</option>
       
    </select>
NAvAP
 
Posts: 7
Joined: Sun Aug 12, 2007 2:39 am

Postby sindre_mehus » Sun Aug 19, 2007 5:43 pm

Hi,

In the upcoming Subsonic version I've implemented support for remembering (across sessions) which music folder a user has selected. Hence, your friend will only need to select music folder once, and it will be remembered the next time he or she logs on to Subsonic.

I think this generic feature is better than some ad-hoc modification for your particular case.

Hope this helps,
Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway


Return to Help

Who is online

Users browsing this forum: No registered users and 13 guests