Iterating artist name also on left column?

Third-party modifications and add-ons, Apps and Clients

Moderator: moderators

Iterating artist name also on left column?

Postby ZonOfthor » Thu Aug 23, 2012 9:54 pm

Hi,
I am trying to add artist name to the left column so that it displays "Artist - SongName" instead of just SongName..

Editing left.jsp so that

Code: Select all
<c:import url="playAddDownload.jsp">
<c:param name="path" value="${song.path}"/>
<c:param name="playEnabled" value="${model.user.streamRole and not model.partyMode}"/>
<c:param name="addEnabled" value="${model.user.streamRole}"/>
</c:import>
${song.artist}
</p>
</c:forEach>


becomes

Code: Select all
<c:import url="playAddDownload.jsp">
<c:param name="path" value="${song.path}"/>
<c:param name="playEnabled" value="${model.user.streamRole and not model.partyMode}"/>
<c:param name="addEnabled" value="${model.user.streamRole}"/>
</c:import>
${song.artist} - ${song.title}
</p>
</c:forEach>



But doing that reverts to original version... I haven't found any API to describe the song object parameters but surely there must be a .artist property?
Last edited by ZonOfthor on Fri Sep 28, 2012 7:59 pm, edited 2 times in total.
ZonOfthor
 
Posts: 5
Joined: Thu Aug 23, 2012 9:48 pm

Re: Iterating artist name also on left column?

Postby ZonOfthor » Fri Sep 28, 2012 7:57 pm

I'd like to bump since this is my one main issue I cannot find out how to fix (mod)?

So easy to change the left.jsp file but I just don't know what database field to use?
ZonOfthor
 
Posts: 5
Joined: Thu Aug 23, 2012 9:48 pm

Re: Iterating artist name also on left column?

Postby ZonOfthor » Fri Sep 28, 2012 9:27 pm

Well, it turns out in 4.7 this works perfectly

Code: Select all
<div class="SingleSongs">
<c:forEach items="${model.singleSongs}" var="song">
<p>
<c:import url="playAddDownload.jsp">
<c:param name="id" value="${song.id}"/>
<c:param name="playEnabled" value="${model.user.streamRole and not model.partyMode}"/>
<c:param name="addEnabled" value="${model.user.streamRole}"/>
<c:param name="video" value="${song.video and model.player.web}"/>
</c:import>
[b]${song.artist} - ${song.title}[/b]
</p>
</c:forEach>
</div>



BUT... how can I make the artist/song entries be sorted alphabetically?
ZonOfthor
 
Posts: 5
Joined: Thu Aug 23, 2012 9:48 pm


Return to Mods, Apps and Clients

Who is online

Users browsing this forum: No registered users and 3 guests