Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Craig Palenshus 39 posts 63 karma points
    Jun 10, 2011 @ 22:37
    Craig Palenshus
    0

    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

  • Evgeniy 18 posts 40 karma points
    Jun 15, 2011 @ 09:23
    Evgeniy
    0

    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.

  • Craig Palenshus 39 posts 63 karma points
    Jun 16, 2011 @ 22:28
    Craig Palenshus
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft