Copied to clipboard

Flag this post as spam?

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


  • Sebastian Dammark 581 posts 1385 karma points
    Oct 29, 2015 @ 23:27
    Sebastian Dammark
    0

    Auto Publish doesn't play nice with uDateFoldersy

    When I use Auto publish to a location that is set up to work with uDateFoldersy, all the imported nodes are placed in a month according to the current date.

    If I then publish the nodes one by one they're moved to the correct year/month structure.

    It's like "Auto Publish" isn't the same as "Save and Publish" ?

    I'm not sure whether it's CMS Import or uDateFoldersy that's the problem ?

  • Sebastian Dammark 581 posts 1385 karma points
    Dec 13, 2015 @ 20:30
    Sebastian Dammark
    0

    Anything on this ?

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Dec 14, 2015 @ 12:04
    Richard Soeteman
    0

    Sorry I don't receive notifications anymore on forum threads but I thinbk you can create an extra property and in udatefoldersy config specify that field as the date field. It' s because Umbraco always stores current date as create date. The date will be edited in DB directly after the import but then the datefolder functionality is already been called.

  • Chriztian Steinmeier 2798 posts 8788 karma points MVP 7x admin c-trib
    Dec 14, 2015 @ 12:10
    Chriztian Steinmeier
    0

    The date will be edited in DB directly after the import [...]

    Aah - sneaky :-)

    /Chriztian

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Dec 14, 2015 @ 13:04
    Richard Soeteman
    0

    It's the only way to achieve this..

  • Sebastian Dammark 581 posts 1385 karma points
    Dec 14, 2015 @ 14:48
    Sebastian Dammark
    0

    So during import I should do like this

    <DatePropertyAlias>@createDate</DatePropertyAlias>
    

    and then afterwards switch to

    <DatePropertyAlias>date</DatePropertyAlias>
    

    when I'm done importing ?

  • Chriztian Steinmeier 2798 posts 8788 karma points MVP 7x admin c-trib
    Dec 14, 2015 @ 15:38
    Chriztian Steinmeier
    0

    You should set the alias for uDateFoldersy to date (if that's the new property) and then tell CMSImport to fill that one with the createdDate too.

    Then it'll have the correct value when CMSImport triggers the publish event. I guess...

Please Sign in or register to post replies

Write your reply to:

Draft