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 10, 2009 @ 20:10
    Chad Rosenthal
    0

    Display Date is changing format

    This is a strange issue, and I'm not sure if it's because of Autofolder 2.0.1 or not. This is in Umbraco 4.0.3.

    I have the display date in the autofolders.config set to displayDate. 

    I have a news items, and news list. I'm using autofolder to create the year, month (both news list) folders. So now my news item that had a display date of 2009-12-10 would appear in Content/Home/Communications/newslist/2009/12/newsitem.aspx. The displayDate for this article is 2009-12-07.

    My problem is that if I 'publish with sub-items' the month that is above the news-item (in this case 12), .the display date will switch to 2009-07-12. The item will get moved from the 12 folder to the 7 so that the url now appears as Content/Home/Communications/newslist/2009/7/newsitem.aspx. The 'Link To Document' will not update correctly. 

    To make this bug even weird, if I publish any item above the month (ie 2009, the newslist) and use 'publish with subitems' everything will switch back to it's regular place. If I publish again, they will stay in this order.

    So this really only happens when you publish the newslist right above the news item.

    <?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>
    
        <folderProvider alias="DateFolderProvider_Full"
                assembly="/bin/AutoFolders"
                type="AutoFolders.Providers.DateFolderProvider">
          <property alias="DayFormat">dd</property>
          <property alias="MonthFormat">MM</property>
          <property alias="YearFormat">yyyy</property>
          <property alias="DateField">MyReleaseDate</property>
        </folderProvider>
    
        <folderProvider alias="AlphaFolder"
               assembly="/bin/AutoFolders"
               type="AutoFolders.Providers.AlphaFolderProvider" >
          <property alias="UseUppercase">true</property>
        </folderProvider>
      </folderProviders>
    
      <autoFolders>
        <autoFolder docType="News Item"
                 folderProviderAlias="DateFolderProvider_Simple"
                 folderDocType="News List"
                 rootFolders="//node[@level=3]"
                 />
    
        <autoFolder docType="Standard_FullExample"
                 folderProviderAlias="DateFolderProvider_Full"
                 rootFolders="//node[@level=2]"
                 folderDocType="DateFolder"
                 truncatedFolderUrl="folder-1/folder-2/newsitems"
                 />
    
      </autoFolders>
    
    </settings>

    Thanks,

    C

     

  • Chad Rosenthal 272 posts 474 karma points
    Dec 16, 2009 @ 14:47
    Chad Rosenthal
    0

    Apparently this it he DatePicker bug that is in 4.0.3. Sorry for the confusion!

    http://umbraco.codeplex.com/WorkItem/View.aspx?WorkItemId=25546

  • 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