Page 1 of 1
Sorting newsletters by release date
Posted: Fri Sep 16, 2005 11:05 pm
by westis
Hi,
I've uploaded newsletters through the Upload module. But now I'd like them sorted by release date (not the date they were uploaded). How can I make a hack to the Upload module to be able to select the month and year when uploading, so that I later can sort by that?
The newsletters can be found at
http://www.kisima.org/cmsmadesimple/ind ... ewsletters
Thanks!
Re: Sorting newsletters by release date
Posted: Thu Sep 22, 2005 10:45 pm
by calguy1000
because it's a physical transfer, the date of the file is the same as the upload date, the easiest way is to edit the descriptin (summary) and hten sort by the summary.
Re: Sorting newsletters by release date
Posted: Thu Sep 22, 2005 10:58 pm
by westis
Ok, that's one way of doing it. Could it also be possible to add a field or two to the database called for example, Month and Year? Then the user can fill these two fields from a drop-down to make it easier to then sort by year and date.
Of course I'm thinking of how I'd like to use this with newsletters and for most others this might not be necessary. But perhaps there could be a hack mod available for those of us who'd like to add these fields, but have limited knowledge of PHP?
The reason I'd like to use drop-downs instead of the description field is that it is then easier to know how to write the month and year of the newsletter, especially if there are many users.
Also, how can I force validation of whatever field I use to enter the date? Since I use this information to sort the newsletters it is compulsory that there is information in that field.
Thanks for a great module!!
Re: Sorting newsletters by release date
Posted: Sat Sep 24, 2005 5:45 am
by redkevin11
You might check out the datedfilelist plugin I created today. I think it has the functionality you are looking for, and it's very easy to manage.
http://forum.cmsmadesimple.org/index.ph ... 738.0.html