Base DateFolder organization off of updatedate instead of createdate
Is it possible to do this?
I'm working on a weekly newspaper site. Some of their articles have a postDate because they're published in the weekly paper and some of their articles don't because they should be live immediately.
For DateFolders, I have the itemDateProperty set to postDate. This is great because all of my articles that have a postDate are organized according to the postDate now. All of the articles that don't have a postDate get put into a folder based on the create date. I'd really rather they default to being organized by the updatedate, though, because that is the date we're displaying on the newspaper site.
I'm also using PDCalendar for events. These get organized by the createdate, too, which is less than ideal since it is pretty common to add an event more than a month before it happens, but when you go to edit it, you would naturally try to find it based on the eventdate not the create date.
So it really seems I have two requests:
1) change the default organization to something like updatedate instead of createdate
2) allow multiple itemDateProperties to be used just like itemDocTypes
In this topic i posted link to my version. You can now set multiple itemDateProperties - datefolders will chose last correct date in this list of properties. You can also set 'updatedate' in this list.
Thanks for your reply, Evgeniy. You could have saved me some work if you had replied one day earlier! We were probably making the update on the same day as you to accept multiple itemDateProperties except our version takes the first item in the list. We also made it accept the start date from PDCalendar. Thanks again. As I mentioned in another post, I'm willing to share the code. Just ask.
Base DateFolder organization off of updatedate instead of createdate
Is it possible to do this?
I'm working on a weekly newspaper site. Some of their articles have a postDate because they're published in the weekly paper and some of their articles don't because they should be live immediately.
For DateFolders, I have the itemDateProperty set to postDate. This is great because all of my articles that have a postDate are organized according to the postDate now. All of the articles that don't have a postDate get put into a folder based on the create date. I'd really rather they default to being organized by the updatedate, though, because that is the date we're displaying on the newspaper site.
I'm also using PDCalendar for events. These get organized by the createdate, too, which is less than ideal since it is pretty common to add an event more than a month before it happens, but when you go to edit it, you would naturally try to find it based on the eventdate not the create date.
So it really seems I have two requests:
1) change the default organization to something like updatedate instead of createdate
2) allow multiple itemDateProperties to be used just like itemDocTypes
In this topic i posted link to my version. You can now set multiple itemDateProperties - datefolders will chose last correct date in this list of properties. You can also set 'updatedate' in this list.
Thanks for your reply, Evgeniy. You could have saved me some work if you had replied one day earlier! We were probably making the update on the same day as you to accept multiple itemDateProperties except our version takes the first item in the list. We also made it accept the start date from PDCalendar. Thanks again. As I mentioned in another post, I'm willing to share the code. Just ask.
is working on a reply...