another set of nav links under search results

Got an idea? Missing something? Post your feature request here.

Moderator: moderators

another set of nav links under search results

Postby thatmikeykid » Tue Jan 26, 2010 11:31 am

TSIA.

In some browers/resolutions, I have to scroll the results back up to get to the next link. how about a set at the bottom, too?

thanks.
thatmikeykid
 
Posts: 17
Joined: Tue Feb 19, 2008 2:28 am

Postby cyclopes » Tue Jan 26, 2010 11:10 pm

hi

Open subsonic\jetty\1130\webapp\WEB-INF\jsp\ Search.jsp


find this script and copy the script and paste to the bottom line
<c:if test="${command.matches != null}">

<table class="indent"><tr>
<c:choose>
<c:when test="${command.totalHits eq 0}">
<th><fmt:message key="search.hits.none"/></th>
</c:when>
<c:otherwise>
<th style="padding-right:2em">
<fmt:message key="search.hits">
<fmt:param value="${command.firstHit}"/>
<fmt:param value="${command.lastHit}"/>
<fmt:param value="${command.totalHits}"/>
</fmt:message>
</th>

<c:if test="${command.firstHit > 1}">
<th><div class="back" style="padding-right:1em">&nbsp; <a href="javascript:noop()" onclick="previous()"><fmt:message key="search.hits.previous"/></a></div></th>
</c:if>

<c:if test="${command.lastHit < command.totalHits}">
<th><div class="forward">&nbsp; <a href="javascript:noop()" onclick="next()"><fmt:message key="search.hits.next"/></a></div></th>
</c:if>
</c:otherwise>
</c:choose>
</tr></table>
</c:if>

-----------------


Paste here in search.jsp
</body></html>

;)
Vote Confirmation ;)
User avatar
cyclopes
 
Posts: 51
Joined: Thu Mar 12, 2009 11:33 pm
Location: Norway

Postby thatmikeykid » Fri Mar 05, 2010 9:36 am

thank you!
thatmikeykid
 
Posts: 17
Joined: Tue Feb 19, 2008 2:28 am

Postby bradrossmac » Sat Oct 09, 2010 6:15 pm

Thanks for the code, but I agree that it would be nice if this were standard or at least an option that could be selected.
bradrossmac
 
Posts: 3
Joined: Sat Oct 09, 2010 6:13 pm


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 11 guests