Copied to clipboard

Flag this post as spam?

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


  • Jon Cousins 5 posts 25 karma points
    Jan 29, 2013 @ 15:01
    Jon Cousins
    0

    Use without month folders (edited)

    Sorry, I couldn't edit the other thread.

    Is there a way for me to use without the month folders?
    For example:

    - 2013
        - article-name.aspx
        - article-name2.aspx
    - 2012
        - huh-name.aspx
        - fun-name.aspx

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jan 29, 2013 @ 19:41
    Jan Skovgaard
    0

    Hi John

    I'm not sure - but I think that you might be able to change the configuration of the simple foldeprovider in the /config/autofolders.config file by uncommenting the property element containing the year format. I have not tested this myself though.

    Remember to touch the web.config file or recycle the app pool after you make the change.

    Hope the above makes sense. Otherwise let me know.

    /Jan

  • Sebastian Dammark 583 posts 1407 karma points
    Jan 29, 2013 @ 22:26
    Sebastian Dammark
    0

    I just tried with a provider looking like this

    <folderProvider alias="DateFolderProvider_year" assembly="/bin/AutoFolders" type="AutoFolders.Providers.DateFolderProvider">
      <property alias="YearFormat">yyyy</property>
    </folderProvider>

    But it still creates the month folder.

    And yes, I did touch the web.config :)

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jan 29, 2013 @ 22:32
    Jan Skovgaard
    0

    Hmm...guess that it's probably not possible without modifying the source then... if anyone has the skills here it is http://autofolders.codeplex.com/ :)

    /Jan

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Feb 08, 2013 @ 15:48
    Tim
    0

    Hiya,

    It's not possible to do at the moment, currently it suports YYYY/MM as the shortest it will do. If you want to modify the source, the default branch only runs on the old schema. We submitted a patch for this when we updated AutoFolders to work with the new schema, you can grab it here: http://www.codeplex.com/Download?ProjectName=autofolders&DownloadId=334887 if you apply that, then you'll have the most up to date version!

    It shouldn't be too complicated to get it to do just the year from what I can remember of the source when we updated it.

    :)

Please Sign in or register to post replies

Write your reply to:

Draft