Copied to clipboard

Flag this post as spam?

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


  • Sean Dooley 3 posts 23 karma points
    Jan 25, 2011 @ 16:54
    Sean Dooley
    0

    What are exact steps for setting up AutoFolders?

    I am struggling to get the AutoFolders package working. I am not getting any errors messages and the setup I have implemented is below.

    Document Types

    • DateFolder: allowed child node types: DateFolder, News Page
    • News Page
    • Runway Homepage: allowed child node types: DateFolder, News Page, Runway Textpage
    • Runway Textpage

    Templates

    • DateFolder
    • News Page
    • Runway default templates

    Below is the code for autofolders.config

    <?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="News Page"
                 folderProviderAlias="DateFolderProvider_Simple"
                 folderDocType="DateFolder"
                 />
      </autoFolders>
    </settings>

    Thanks in advance for any help, which will be greatly appreciated.

    Sean

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jan 25, 2011 @ 21:30
    Jan Skovgaard
    0

    Hi Sean

    What happens when you create a document that should be put into an autofolder? Is the folder just not being created?

    /Jan

  • Sean Dooley 3 posts 23 karma points
    Feb 01, 2011 @ 20:19
    Sean Dooley
    0

    Hi Jan

    Thank you for the response.  When I create a document, no folder is being created. The issue was due to the fact I was not using the correct reference for docType and folderDocType in autofolders.config

    • News Page -> NewsPage

    I decided to start over again, and re-install the Runway and AutoFolders package.  The first step from there was to create the following Document Types and Templates for the site I was working on

    • News Container (NewsContainer)
      • can be a child of Runway Homepage
    • News Page (NewsPage)
      • can be a child of News Container

    Then I set the autofolders.config to the following

    <?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>
      </folderProviders>

     
    <autoFolders>
       
    <autoFolder docType="NewsPage"
                 
    folderProviderAlias="DateFolderProvider_Simple"
                 
    folderDocType="NewsContainer"
                 
    />
     
    </autoFolders>
    </settings>

    Thereby whenever I created a News Page, autofolders (NewsContainer) would be generated as specified by DateFolderProvider_Simple

  • 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