Copied to clipboard

Flag this post as spam?

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


  • Dan White 206 posts 510 karma points c-trib
    Dec 12, 2012 @ 09:08
    Dan White
    0

    Alternate DateField not working (4.11)

    Hello,

    I'm trying to get it setup to use another date than the create date. Here's my setup:

    Content
    -Home
    --News

    Works fine with:

    <?xml version="1.0" encoding="utf-8" ?>
    <settings>
      <folderProviders>
        <folderProvider alias="News"
          assembly="/bin/AutoFolders"
          type="AutoFolders.Providers.DateFolderProvider">
          <property alias="DayFormat">dd</property> 
          <property alias="MonthFormat">MM</property>
          <property alias="YearFormat">yyyy</property>     
        </folderProvider>
      </folderProviders>
      <autoFolders>
        <autoFolder docType="NewsItem"
          folderProviderAlias="News"
          folderDocType="DateFolder"      
        />
      </autoFolders>
    </settings>

    But when I try to add the DateField options, it doesn't work at all:

    <?xml version="1.0" encoding="utf-8" ?>
    <settings>
      <folderProviders>
        <folderProvider alias="News"
          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">releaseDate</property>//property is on newsItem DocType
        </folderProvider>
      </folderProviders>
      <autoFolders>
        <autoFolder docType="NewsItem"
          folderProviderAlias="News"
          rootFolders="//node[@level=1]" //have tried values 1,2, and 3 for level
          folderDocType="DateFolder"      
        />
      </autoFolders>
    </settings>

    Help we would be great!

     

  • Dan White 206 posts 510 karma points c-trib
    Dec 12, 2012 @ 09:11
    Dan White
    0

    This error is showing up in my log. Not sure if it's related or not.

    Error adding to SiteMapProvider in loadNodes(): System.InvalidOperationException: Multiple nodes with the same URL '/' were found. XmlSiteMapProvider requires that sitemap nodes have unique URLs. at System.Web.StaticSiteMapProvider.AddNode(SiteMapNode node, SiteMapNode parentNode) at umbraco.presentation.nodeFactory.UmbracoSiteMapProvider.loadNodes(String parentId, SiteMapNode parentNode)

     

Please Sign in or register to post replies

Write your reply to:

Draft