Page 1 of 2

Set default view to NEWEST instead of random

PostPosted: Wed Sep 16, 2009 9:54 pm
by mudsharkymon
How about an option (global or per user) to change the default view to NEWEST (or whatever other view a user likes) rather than RANDOM.

PostPosted: Sun Sep 20, 2009 4:16 pm
by edbethea
That would be a useful feature.

But "Newest" should be something the admin can select some how to show as real new added music . "Newest" is only looking at the most recent modified file date so when I make some tag corrections to some existing music files, They show up as "newest" when they are not newest.

Maybe a feature change?

PostPosted: Mon Sep 21, 2009 4:22 am
by mudsharkymon
Oh! Yea, sure! Selectable NEW or MODIFIED default! Speaking of which, I'd also like the option of NOT displaying the modified date. Much of my music is live recordings so therefore each album has 2 dates displaying, the modified on date and the performance date.

PostPosted: Thu Oct 01, 2009 2:41 pm
by kayvee
+1 for the idea

PostPosted: Tue Oct 27, 2009 5:22 am
by pha9992001
+2... newest as a default option would be nice.

PostPosted: Wed Oct 28, 2009 4:04 pm
by bluetooth
I'll add my vote to this request

PostPosted: Mon Nov 09, 2009 12:45 am
by cyclopes
+1 :D

PostPosted: Mon Nov 09, 2009 3:38 pm
by foo
+1 too

PostPosted: Wed Nov 11, 2009 5:44 pm
by kermit22
[quote="mudsharkymon"]Selectable NEW or MODIFIED default![/quote]


+1 for this

Re: Set default view to NEWEST instead of random

PostPosted: Fri Nov 13, 2009 1:24 am
by flacflac
mudsharkymon wrote:How about an option (global or per user) to change the default view to NEWEST (or whatever other view a user likes) rather than RANDOM.


I don't know if you tried this, but I changed it to "Newest" by modifying "index.jsp" (sorry, previous edit had the wrong file listed) - exchange line 16 with

Code: Select all
<frame name="main" src="home.view?listSize=10&listType=newest" marginwidth="0" marginheight="0">


Where the number after listSize equals the amount of albums shown per page. Granted, this is quick and dirty, but it does the job until this gets included as a feature.

Additionally you could change the reference of the "home" icon on the very top by changing line 30 of "top.jsp" into:

Code: Select all
            <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}"><br>${home}</a></td>


Also granted, if your user selects a different per page amount using the drop-down menu he/she will always be reverted back to 10 or whatever you set it to when he/she clicks on "home". If you can fiddle a bit with the scripting you can actually use the variable for this option, but that was too much of a headache for me right now... . :shock:

Make sure you make backups and know what you're doing. :)

ff

PostPosted: Mon Nov 16, 2009 4:05 am
by precipitous
flacflac:
I tried your suggestions. The edits to line 30 of Top.jsp work perfectly (I made a couple of edits to show top 15 most frequently played albums):
Code: Select all
<td style="min-width:4em;padding-right:1.5em">

                <a href="home.view?listSize=15&listType=frequent" target="main"><img src="<spring:theme code="homeImage"/>" title="${home}" alt="${home}"><br>${home}</a>

</td>


Unfortunately, the edits you suggested to Home.jsp are not giving me the same result. I ended up using the following for lines 14 - 17, but still no luck:

Code: Select all
<h1>

   <img src="<spring:theme code="homeImage"/>" title="${home}" alt="${home}">   
   <frame name="home.view?listSize=15&listType=frequent" marginwidth="0" marginheight="0">

</h1>


Does anybody have any suggestions?

PostPosted: Mon Nov 16, 2009 8:32 am
by flacflac
precipitous wrote:
Unfortunately, the edits you suggested to Home.jsp are not giving me the same result. I ended up using the following for lines 14 - 17, but still no luck:

Code: Select all
<h1>

   <img src="<spring:theme code="homeImage"/>" title="${home}" alt="${home}">   
   <frame name="home.view?listSize=15&listType=frequent" marginwidth="0" marginheight="0">

</h1>


Does anybody have any suggestions?



Hi, I am sorry but I made a little mistake in my post - you're not altering that file but INDEX.JSP - sorry about that, I had too many tabs in my text editor open... .

So, in "index.jsp", line 16:

Code: Select all
<frame name="main" src="home.view?listSize=10&listType=newest" marginwidth="0" marginheight="0">


Your other change is not affecting the home view.

Let me know if it works. :)

ff

PostPosted: Mon Nov 16, 2009 4:36 pm
by precipitous
flacflac:
Your instructions worked perfectly... Thanks!
I wanted to display the top 15 most frequently played albums, though, so I made a slight edit, and used the following:
Code: Select all
<frame name="main" src="home.view?listSize=15&listType=frequent" marginwidth="0" marginheight="0">

Once again-Thank You!

PostPosted: Thu Feb 11, 2010 3:20 am
by soonerrob
can anyone tell me where this index file is located in the Standalone install?

PostPosted: Fri Feb 12, 2010 2:12 pm
by flacflac
soonerrob wrote:can anyone tell me where this index file is located in the Standalone install?


Sorry, I'm not using the standalone version. You could just search for "index.jsp" and should find it, most likely somewhere in your 'Program Files' folder if you're using Windows.

Someone using the Windows standalone version, give the man a hand!
8)