Copied to clipboard

Flag this post as spam?

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


  • Jacob Phillips 34 posts 84 karma points
    Apr 21, 2011 @ 21:58
    Jacob Phillips
    0

    autofolder created, but reload nodes, and node reselect required

    Umbraco Version:4.0.4.2::OS:Windows Server 2003::WebServer::IIS 6.0::AutoFolders:2.0.2

    I've inherited an umbraco system set up by contractors and am getting up to speed on all the configuration/settings of packages. Perhaps my inquiry is as obvious as changing the config. But thought I'd double check.

    Scenario:

    A user creates a node of docType "Story" w/ default template for that docType "cprArticle Item" and is required to enter a date. Upon publishing auto folders succesfully creates the subfolder and node (but it is not apparent in the UI, the newly created node is displayed as published outside the date folder tree)

    Problem:

    After the save & publish, the content editor for the node seems to be out of sync with with Umbraco.

    The user continues editing their node, saving & publishing as they go, then logs out.When the URL

    is loaded, the result is a 404. 

    What I have deduced is that after that first save & publish, the content editor is displaying some kind

    of orphaned version of the node. 

    Workaround:

    I've instructed content publishers to reload nodes on the parent content node user autofolders after the first save & publish, then reselect the node from the new date folder. This solves the problem, but adds extra steps that are not intuitive. New users always make the mistake of not reloading and reselecting nodes they create that use autofolders. Later, they or a website vistitor reports they are getting a 404 when trying to load the page. I end up regenerating the cache to fix it, but is resource intensive (100 mb cache file). Here is my configuration:

     

    <?xml version="1.0" encoding="utf-8" ?>
    <settings>
     <folderProviders>
      <folderProvider alias="DateFolderProvider_DisplayMonth"
        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_DisplayDate"
        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">displayDate</property>
      </folderProvider>
      <folderProvider alias="DateFolderProvider_CreateDate"
        assembly="/bin/AutoFolders"
        type="AutoFolders.Providers.DateFolderProvider">
       <property alias="DayFormat">dd</property>
       <property alias="MonthFormat">MM</property>
       <property alias="YearFormat">yyyy</property>
      </folderProvider>
      <folderProvider alias="DateFolderProvider_CreateMonth"
        assembly="/bin/AutoFolders"
        type="AutoFolders.Providers.DateFolderProvider">
       <property alias="MonthFormat">MM</property>
       <property alias="YearFormat">yyyy</property>
      </folderProvider>
      <folderProvider alias="AlphaFolder"
          assembly="/bin/AutoFolders"
          type="AutoFolders.Providers.AlphaFolderProvider" >
       <property alias="UseUppercase">true</property>
      </folderProvider>
     </folderProviders>
     <autoFolders>
      <autoFolder docType="cprArticle Item"
         folderProviderAlias="DateFolderProvider_DisplayDate"
         rootFolders="//node[@nodeTypeAlias='cprArticles']"
         folderDocType="systemDateFolder"
                 />
      <autoFolder docType="cprEvent Item"
         folderProviderAlias="DateFolderProvider_DisplayDate"
         rootFolders="//node[@nodeTypeAlias='cprEvents']"
         folderDocType="systemDateFolder"
                 />
      <autoFolder docType="cprPosition Item"
         folderProviderAlias="DateFolderProvider_DisplayMonth"
         rootFolders="//node[@nodeName='Careers']"
         folderDocType="systemDateFolder"
                 />
      <autoFolder docType="cprPromo Item"
         folderProviderAlias="DateFolderProvider_CreateMonth"
         rootFolders="//node[@nodeTypeAlias='cprResources']"
         folderDocType="systemDateFolder"
                 />
      <autoFolder docType="cprShow Item"
         folderProviderAlias="DateFolderProvider_DisplayDate"
         rootFolders="//node[@nodeTypeAlias='cprProgram Item']"
         folderDocType="systemDateFolder"
                 />
     </autoFolders>
    </settings>

     

     

Please Sign in or register to post replies

Write your reply to:

Draft