I would like to set 15 or 20 instead of 10.
any help?
Moderator: moderators
<c:forTokens items="10 15 20 30 40 50" delims=" " var="size">
othello wrote:I would like to set 15 or 20 instead of 10.
any help?
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:
<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:
<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... . Shocked
Make sure you make backups and know what you're doing. Smile
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:
<frame name="main" src="home.view?listSize=15&listType=frequent" marginwidth="0" marginheight="0">
Once again-Thank You!
Users browsing this forum: No registered users and 13 guests