Copied to clipboard

Flag this post as spam?

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


  • trfletch 595 posts 571 karma points
    Apr 07, 2010 @ 18:13
    trfletch
    0

    What am I doing wrong? Autofolders

    Ok, I am persisting with trying to get Autofolders 2.2 working on my Umbraco V4.0.3 website because it looks like it will do exactly what I want if I can just get it to work. I have two document types in my website, one that has an alias of Newssection and one that has an alias of Newsarticle. I have the following site structure:

    Home
        - News                                (this is using the Newssection document type)
                 - Article 1                   (this is using the Newsarticle document type)
                 - Article 2                   (this is using the Newsarticle document type)
                 - Article 3                   (this is using the Newsarticle document type)

    I have the following autofolders config file settings:

    <?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>
        </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="Newsarticle"
                 folderProviderAlias="DateFolderProvider_Simple"
                 folderDocType="Newssection"
                 />
      </autoFolders>
    </settings>

    I have touched the web.config and saved it and also restarted IIS on the server. If I try and create a new Newsarticle under the Newssection folder then it all seems to create ok but when I Save it or Save and Publish it I can then not find it in the Content tree and it doesn't appear to be visible on the website. If I am to select one of the articles that were originally there before I installed Autofolders then save and publish it, it disappears from the Content tree but is still visible on the front end website (until I republish the whole site clearing the cache which makes it disappear!). Can anyone see where I am going wrong? Other people seem to have got this to work using the same settings as me.

    It's almost as if it is moving them to the datefolders but I can't see them in the content tree????

  • Chris Koiak 700 posts 2626 karma points
    Apr 07, 2010 @ 21:08
    Chris Koiak
    0

    Hi,

    Are Newssection pages allowed to be created underneath Newssection pages? Autofolders may be trying to create a structure that is not valid.

    Chris

  • trfletch 595 posts 571 karma points
    Apr 08, 2010 @ 10:09
    trfletch
    0

    Hi Chris,

    Thanks for the response. Newsection pages weren't able to be created under Newssection pages but I have now changed this and it still does not work. I have just noticed that when I try and create a News Article under the news section I get the following message appear in the bottom right hand corner after entering the name for the node and clicking create: Can't expand tree. There was an error loading childern. Please try again.

  • trfletch 595 posts 571 karma points
    Apr 08, 2010 @ 15:40
    trfletch
    0

    Ok following on from my post above, I have looked in the database and it does appear to be creating the nodes and giving them parent nodes that relate to date folders within the database but these are just not showing up on my site or in Umbraco. Does anyone know why this could be? Should I try deleting all the entries from the database that I can find regarding datefolders etc?

  • trfletch 595 posts 571 karma points
    Apr 08, 2010 @ 16:08
    trfletch
    0

    I have finally got this working, I had to completely delete my news section and empty the recycle bin. I was then able to re-created the News section from scratch and everything started working correctly. Very strange as to why it seemed to be created the nodes in the database but not able to show them in Umbraco! Anyway at least it is now working.

Please Sign in or register to post replies

Write your reply to:

Draft