Copied to clipboard

Flag this post as spam?

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


  • Chad Rosenthal 272 posts 474 karma points
    Dec 09, 2009 @ 16:15
    Chad Rosenthal
    0

    Link to Document saving incorrectly

    I have the following configuration:

    <?xml version="1.0" encoding="utf-8" ?>
    <settings>
      <folderProviders>
        <folderProvider alias="DateFolderProvider_Simple"
                assembly="/bin/AutoFolders"
                type="AutoFolders.Providers.DateFolderProvider">
          <property alias="MonthFormat">MM</property>
          <property alias="YearFormat">yyyy</property>
          <property alias="DateField">displayDate</property>
        </folderProvider>
      </folderProviders>
    
      <autoFolders>
        <autoFolder docType="News Item"
                 folderProviderAlias="DateFolderProvider_Simple"
                 folderDocType="News List"
                 rootFolders="//node[@level=3]"
                 />
      </autoFolders>
    
    </settings>

    I'm currently using Umbraco 4.0.3 and Autofolder 2.0.1.

    When I create an item, it is doing exactly what it is supposed to do. It first creates it as a sub-item of News List. And then when I publish it, it is checking the displayDate and moving the item into the appropriate yyyy/mm folder.

    The problem I am having is the 'Link to Document'. When I first publish it, it is publishing with the address: /news-list/news-item.aspx. When I unpublish the item and republish the item, it is republishing correctly at: /news-list/yyyy/mm/new-item.aspx.

    Haven't had time to look at the code yet, but it almost seems that the item is being published, and then moved to the new folder.

    is this correct?

  • Chris Koiak 700 posts 2626 karma points
    Dec 09, 2009 @ 22:54
    Chris Koiak
    0

    yeah... it moves the file, but doesn't republish.

    I'm going to be looking at another bug this weekend, I'll include this in my fixes.

    Cheers,

    Chris

  • dandrayne 1138 posts 2262 karma points
    Feb 17, 2010 @ 11:00
    dandrayne
    0

    Hi Chris

    Is there a fix available for this yet?  I've run up against this issue this morning!

    Dan

  • Chris Koiak 700 posts 2626 karma points
    Feb 17, 2010 @ 23:27
    Chris Koiak
    2

    This should now be fixed. Version 2.0.2 has been uploaded.

    All source code is now available on autofolders.codeplex.com.

Please Sign in or register to post replies

Write your reply to:

Draft