Copied to clipboard

Flag this post as spam?

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


  • bayshield 50 posts 65 karma points
    Dec 29, 2009 @ 14:56
    bayshield
    0

    Future dated posts

    What would be the best way of creating future dated blog posts?  I know I can set the "publish a"t date on the properties page but it will still be in the wrong date folder. 

    Should I just update the datefolder doctype to allow blogposts as child nodetypes and then manually create the correct date folder to put the post in?

    Cheers

    Aaron

  • Sebastiaan Janssen 4899 posts 14655 karma points MVP admin hq
    Dec 29, 2009 @ 18:45
    Sebastiaan Janssen
    0

    Yes, you could create your own datefolders. However, it might be a good idea (if you'd like to contribute) to write an extra eventhandler, I imagine it would work something like this: 

    BeforePublish, check if the document has a publishdate that's different from the createdate (don't include a check for time). 
    If there is a specific publishdate, move the node to a datefolder with that date and then publish it (as this is the BeforePublish event, just leave that up to the rest of the code).

    However, now on every publish it would have this behavior, so to hack it a little bit, you could clear the publish date so that on the next check, the eventhandler doesn't try to move the node.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies