Page 1 of 1
Album: listing albums in descending order
Posted: Sat May 27, 2006 2:17 pm
by prefab
It would be nice if albums were listed in descending order by default, and a parameter could be used for changing this ( like sortasc in News ). As a workaround the template can be modified to do this:
replace the loop
{foreach from=$albums item=album}
..$album->..
{/foreach}
with
{section name=album loop=$albums step=-1}
..$albums[album]->..
{/section}
cheers
Re: Album: listing albums in descending order
Posted: Sun May 28, 2006 2:58 am
by Elijah Lofgren
prefab wrote:
It would be nice if albums were listed in descending order by default, and a parameter could be used for changing this ( like sortasc in News ).
I started adding this in, but then I remembered that you can reorder Albums using the Album Admin Interface. I've just added more headings to make it clearer. Check out the latest SVN version of Album and you'll see something like the attached image (red box added).
Hope this helps,
Elijah
[attachment deleted by admin]
Re: Album: listing albums in descending order
Posted: Sun May 28, 2006 8:24 am
by tsw
It might still be nice to have reverse order as new galleries will be at the bottom by default and one might want to show new albums first in the listing automagically

Re: Album: listing albums in descending order
Posted: Sun May 28, 2006 12:36 pm
by prefab
Reordering works as advertised, but for large lists it is maybe cumbersome. Is there a way to put newly created albums at the top of the list?
Cheers
Re: Album: listing albums in descending order
Posted: Sun May 28, 2006 1:10 pm
by Elijah Lofgren
prefab wrote:
Reordering works as advertised, but for large lists it is maybe cumbersome. Is there a way to put newly created albums at the top of the list?
That would make a good option. I've submitted a feature request and hopefully someday I'll get around to adding it:
http://dev.cmsmadesimple.org/tracker/in ... d=728

Re: Album: listing albums in descending order
Posted: Sun May 28, 2006 6:56 pm
by prefab
Thanks Elijah and keep up the good work.
Cheers
Re: Album: listing albums in descending order
Posted: Mon Jun 26, 2006 1:14 am
by Elijah Lofgren
prefab wrote:
Reordering works as advertised, but for large lists it is maybe cumbersome. Is there a way to put newly created albums at the top of the list?
I've finally added this in the latest SVN version of Album:
http://viewsvn.cmsmadesimple.org/viewsv ... m&view=rev
To use it upgrade to latest SVN of Album and call Album with something like this:
Code: Select all
{cms_module module='album'sortdesc='true'}
Enjoy,
Elijah
Re: Album: listing albums in descending order
Posted: Fri Jul 14, 2006 6:06 pm
by prefab
Hi Elijah,
I used SVN rev 98 and the option works very well. Thank you for all your good work.
Cheers