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!
Sorting newsletters by release date
Sorting newsletters by release date
Last edited by westis on Thu Sep 22, 2005 10:49 pm, edited 1 time in total.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Sorting newsletters by release date
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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Sorting newsletters by release date
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!!
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!!
-
- Forum Members
- Posts: 29
- Joined: Fri May 20, 2005 6:21 pm
Re: Sorting newsletters by release date
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
http://forum.cmsmadesimple.org/index.ph ... 738.0.html