search options

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

Moderator: moderators

search options

Postby cperalt1 » Mon Mar 15, 2010 4:22 pm

Would it be possible to add different lengths of time for searching your library. For example I can currently search for files newer than 1 day, or 1 week. I would like to be able to search for files newer than 2 or 3 days in order to find files added over the weekend. I tried adding the values to the form in the search.jsp file. I assume that I need to add these values to another file somewhere else as well. thanks for any pointers.
cperalt1
 
Posts: 5
Joined: Mon Oct 12, 2009 2:31 pm

Postby cperalt1 » Tue May 18, 2010 6:52 pm

Here is what I have tried thus far in search.jsp located in /subsonic/WEB-INF/jsp/

Code: Select all
                <form:select path="time" cssStyle="vertical-align:middle" id="time">
                    <fmt:message key="search.select" var="select"/>
                    <fmt:message key="search.day" var="day"/>
                    <fmt:message key="search.week" var="week"/>
                    <fmt:message key="search.weeks" var="weeks"/>
                    <fmt:message key="search.month" var="month"/>
                    <fmt:message key="search.months" var="months"/>
                    <fmt:message key="search.year" var="year"/>
                    <fmt:message key="search.days" var="days"/>

                    <form:option value="0" label="${select}"/>
                    <form:option value="1d" label="1 ${day}"/>
                    <form:option value="2d" label="2 ${day}"/>
                    <form:option value="3d" label="3 ${day}"/>
                    <form:option value="1w" label="1 ${week}"/>
                    <form:option value="2w" label="2 ${weeks}"/>
                    <form:option value="1m" label="1 ${month}"/>
                    <form:option value="3m" label="3 ${months}"/>
                    <form:option value="6m" label="6 ${months}"/>
                    <form:option value="1y" label="1 ${year}"/>
                </form:select>


Is there another file I need to modify somewhere, I haven't been able to find anywhere else to change search parameters.
cperalt1
 
Posts: 5
Joined: Mon Oct 12, 2009 2:31 pm

Postby dan_i » Wed May 19, 2010 3:46 am

I tried to do the same, with no luck unfortunately. If you manage it, please post how :)
dan_i
 
Posts: 13
Joined: Thu Mar 25, 2010 6:36 pm


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 17 guests