change default view to "newest"
Posted: Sat Mar 12, 2011 8:42 pm
Inspiration by various posters in a feature request here: Set default view to NEWEST instead of random
to have the suggested mod (newest view instead of random view in main tab) not only show up when manually navigating to home.view or when first logging in, but also when staying there refreshing as often as the randow view to keep the newest view almost updated in real-time, follow below instructions acurately!
Backup, stop server, edit files, restart server, clear browser cache, login!
[OPTIONAL]
(to make "newest" appear leftmost in the main tab)
In home.jsp in subsonic/jetty/xxxx/webapp/WEB-INF/jsp find:
replace with:
save!
[NEEDED]
in index.jsp find:
replace with:
save!
in top.jsp find:
replace with:
save!
DONE!
enjoy!
EDIT: works now!
fixed error in code snipped
to have the suggested mod (newest view instead of random view in main tab) not only show up when manually navigating to home.view or when first logging in, but also when staying there refreshing as often as the randow view to keep the newest view almost updated in real-time, follow below instructions acurately!
Backup, stop server, edit files, restart server, clear browser cache, login!
[OPTIONAL]
(to make "newest" appear leftmost in the main tab)
In home.jsp in subsonic/jetty/xxxx/webapp/WEB-INF/jsp find:
- Code: Select all
<c:forTokens items="random newest highest frequent recent users" delims=" " var="cat" varStatus="loopStatus">
replace with:
- Code: Select all
<c:forTokens items="newest highest frequent recent random users" delims=" " var="cat" varStatus="loopStatus">
save!
[NEEDED]
in index.jsp find:
- Code: Select all
<frame name="main" src="nowPlaying.view?" marginwidth="0" marginheight="0">
replace with:
- Code: Select all
<frame name="main" src="home.view?listSize=10&listType=newest" marginwidth="0" marginheight="0">
save!
in top.jsp find:
- Code: Select all
<td class="logo" style="padding-right:2em"><a href="home.view?" target="main"><img src="<spring:theme code="logoImage"/>" title="${help}" alt=""></a></td>
<c:if test="${not model.musicFoldersExist}">
<td style="padding-right:2em">
<p class="warning"><fmt:message key="top.missing"/></p>
</td>
</c:if>
<td>
<table><tr align="center">
<td style="min-width:4em;padding-right:1.5em">
<a href="home.view?" target="main"><img src="<spring:theme code="homeImage"/>" title="${home}" alt="${home}"></a><br>
<a href="home.view?" target="main">${home}</a>
replace with:
- Code: Select all
<td class="logo" style="padding-right:2em"><a href="home.view?listSize=10&listType=newest" target="main"><img src="<spring:theme code="logoImage"/>" title="${help}" alt=""></a></td>
<c:if test="${not model.musicFoldersExist}">
<td style="padding-right:2em">
<p class="warning"><fmt:message key="top.missing"/></p>
</td>
</c:if>
<td>
<table><tr align="center">
<td style="min-width:4em;padding-right:1.5em">
<a href="home.view?listSize=10&listType=newest" target="main"><img src="<spring:theme code="homeImage"/>" title="${home}" alt="${home}"></a><br>
<a href="home.view?listSize=10&listType=newest" target="main">${home}</a>
save!
DONE!
enjoy!
EDIT: works now!
fixed error in code snipped