Copied to clipboard

Flag this post as spam?

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


  • npanguuluri 30 posts 57 karma points
    Dec 14, 2009 @ 21:45
    npanguuluri
    0

    not understanding how to use

    I want to create a structure like

     Memo  |_

                      2009

                             12

                                    14

                                       Article 1

    please tell what document types i need to create and settings changes in the autoconfig file.

     

     

    Thanks

  • Chad Rosenthal 272 posts 474 karma points
    Dec 14, 2009 @ 21:49
    Chad Rosenthal
    0

    which version are you using.....v1 or v2?

    -Chad

  • npanguuluri 30 posts 57 karma points
    Dec 14, 2009 @ 21:58
    npanguuluri
    0

    Hi Chad.

     

    I am using v2.0.1

     

    Thanks

  • Chad Rosenthal 272 posts 474 karma points
    Dec 14, 2009 @ 22:29
    Chad Rosenthal
    1

    so in the case of your set-up.....you need to create two templates. One is the listing template (memo) which would list all of the articles, and the second is the details template (article 1). For this example I will use the following aliases: listing template -> newsListing, details template -> newsDetails

    <?xml version="1.0" encoding="utf-8" ?>
    <settings>
      <folderProviders>
        <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">YOUR_DOCTYPE_FIELD_ALIAS_HERE</property>
        </folderProvider>
      </folderProviders>
    
      <autoFolders>   
        <autoFolder docType="newsDetails"
                 folderProviderAlias="DateFolderProvider_Full"
                 rootFolders="//node[@level=XXX]"
                 folderDocType="NewsListing"
                 />
      </autoFolders>
    </settings>

    The two values you will need to update are the XXX after rootFolders. The XXX should be the level that Memo is. So Content->Home->Memo would be 1 level (I think). If this doesn't work, change it to 2.

    The second value is the DateField. In your Details template, you will have a field where you enter in the date that you would like the auto folder to use for the folders. I normally use a Date Picker called displayDate or articleDate. You would enter the alias for the field where it says YOUR_DOCTYPE_FIELD_ALIAS_HERE.

    Hope this helps.

    -Chad


  • npanguuluri 30 posts 57 karma points
    Dec 14, 2009 @ 23:01
    npanguuluri
    0

    Chad,

     

    thanks for you help.. i tried but not able to get it.. the newsListing and newsDetails are the document types right?

     

    thanks

  • Chad Rosenthal 272 posts 474 karma points
    Dec 14, 2009 @ 23:17
    Chad Rosenthal
    0

    Correct.

     

  • Chad Rosenthal 272 posts 474 karma points
    Dec 14, 2009 @ 23:21
    Chad Rosenthal
    0

    can you post your autofolder.config? and include your aliases for your your different doctypes?

  • npanguuluri 30 posts 57 karma points
    Dec 14, 2009 @ 23:43
    npanguuluri
    0

    created 2 document types

    memodetails -- alias(memodetails)

    articledetails -- alias(articledetails)   -- under generic proerties created a proprty with datepicker datatype -- alias(pickdate)

     

    The following is the autosettings.config file

    <?xml version="1.0" encoding="utf-8" ?>
    <settings>
      <folderProviders>
        <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">pickdate</property>
        </folderProvider>
      </folderProviders>

      <autoFolders>  
        <autoFolder docType="articledetails"
                 folderProviderAlias="DateFolderProvider_Full"
                 rootFolders="//node[@level=2]"
                 folderDocType="memodetails"
                 />
      </autoFolders>
    </settings>

     

     

    Thanks

    Naren

  • npanguuluri 30 posts 57 karma points
    Dec 14, 2009 @ 23:44
    npanguuluri
    0

    created 2 document types

    memodetails -- alias(memodetails)

    articledetails -- alias(articledetails)   -- under generic proerties created a proprty with datepicker datatype -- alias(pickdate)

     

    The following is the autofolders.config file

    <?xml version="1.0" encoding="utf-8" ?>
    <settings>
      <folderProviders>
        <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">pickdate</property>
        </folderProvider>
      </folderProviders>

      <autoFolders>  
        <autoFolder docType="articledetails"
                 folderProviderAlias="DateFolderProvider_Full"
                 rootFolders="//node[@level=2]"
                 folderDocType="memodetails"
                 />
      </autoFolders>
    </settings>

     

     

    Thanks

    Naren

  • Chad Rosenthal 272 posts 474 karma points
    Dec 15, 2009 @ 00:12
    Chad Rosenthal
    0

    Well, your config looks good to me. The one question may be the rootFodlers level. Please try and remove that line (for now) and see if that works. The root folder element basically forces the autofolders to only work if the memodetails item is at the second level. If you're trying to add at a different level, then it won't work.

    If it works, then we'll want to add it back in....and get it working properly.

    -C

     

  • npanguuluri 30 posts 57 karma points
    Dec 15, 2009 @ 15:45
    npanguuluri
    0

    Hi chad.. i really appreciate your help, but i don't know where i am going wrong.. i removed the root folders but still not working. The umbraco version i am using is v 4.0.2.1 (Assembly version: 1.0.3441.17657). is there anything that autofolders v2.0.1 has issues with umbraco versions?

  • npanguuluri 30 posts 57 karma points
    Dec 15, 2009 @ 16:30
    npanguuluri
    0

    got working with DateFolder package of Tim. Thanks a lot chad

  • Robert J. Bullock 380 posts 398 karma points
    Jan 28, 2010 @ 20:47
    Robert J. Bullock
    0

    Wow, I could not get this package working either. Very confusing setup and got all sorts of errors. Weird.

  • Robert J. Bullock 380 posts 398 karma points
    Jan 28, 2010 @ 21:09
    Robert J. Bullock
    0

    What could possibly be wrong with my config file?

    <?xml version="1.0" encoding="utf-8" ?>
    <settings>
    <folderProviders>
    <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">newsDate</property>
    </folderProvider>
    </folderProviders>

      <autoFolders><autoFolder docType="news"   
    folderProviderAlias="DateFolderProvider_Full"
    rootFolders="//node[@level=1]"
    folderDocType="newsFolder" />

    </autoFolders>
    </settings>

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

    I'm glad it's not just me having problems with this, I am running an Umbraco V4.0.3 website and I am having all sorts of problems with this package, I have tried all different types of configurations but I either get nodes that dissapear or various other asp.net errors when trying to publish a node. Think I might give Tim's package a try instead.

Please Sign in or register to post replies

Write your reply to:

Draft