Page 1 of 1

another set of nav links under search results

PostPosted: Tue Jan 26, 2010 11:31 am
by thatmikeykid
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.

PostPosted: Tue Jan 26, 2010 11:10 pm
by cyclopes
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>

;)

PostPosted: Fri Mar 05, 2010 9:36 am
by thatmikeykid
thank you!

PostPosted: Sat Oct 09, 2010 6:15 pm
by bradrossmac
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.