Copied to clipboard

Flag this post as spam?

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


  • Robert J. Bullock 386 posts 405 karma points
    Feb 12, 2010 @ 22:24
    Robert J. Bullock
    0

    Republishing Causes Nested Nodes / Folder Structure

    This must be a bug, but if you have a folder with date folders below it created with AutoFolders, then publish the main folder and all children folders, you get this:

    Notice: 2010 > 01 > 2010 > 11?

  • Robert J. Bullock 386 posts 405 karma points
    Feb 12, 2010 @ 22:25
  • Robert J. Bullock 386 posts 405 karma points
    Feb 12, 2010 @ 22:47
    Robert J. Bullock
    0

    Only seems to affect 2010 folders... Hmmm...

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Feb 13, 2010 @ 11:12
    Thomas Höhler
    0

    Had this issue also, but it was a misconfiguration, so check out the documentation and your configutation...

    Think it was the definition which masterdoctype to use from, but I am not sure cause this some time ago...

    hth, Thomas

  • Robert J. Bullock 386 posts 405 karma points
    Feb 13, 2010 @ 19:05
    Robert J. Bullock
    0

    I couldn't figure it out so I created a modified version of Nibble's DateFolder package. I added some of the functionality of AutoFolders, like specify the date property and auto-move republished nodes, but it's simpler and seemingly more stable than AutoFolders. I just didn't get the whole rootFolder thing with AutoFolders. The way I did it is I check if the saved document's parent is a DateFolder. If it is, I go up the node tree recursively until I find a parent that is NOT, then i create the dateFolders starting from that node. Works quite well.

  • Stuart Thomson 2 posts 22 karma points
    Apr 22, 2013 @ 06:52
    Stuart Thomson
    0

    I am also having this republishing problem.

    I re-built the autofolders dll to fix the initial publishing issue and that works ok.

    However once my node is published and I modify the date - the structure is again created at the level of the node I am editting and not at level 2.

    Here is my config - if anyone could help that would be great..

     

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

    <property alias="DateField">commentaryDate</property>

    </folderProvider>

    <folderProvider alias="DateFolderProvider_Full"

    rootFolders="//* [@isDoc and @level=2]"

      assembly="/bin/AutoFolders"

      type="AutoFolders.Providers.DateFolderProvider">    

    <property alias="MonthFormat">MM</property>

    <property alias="YearFormat">yyyy</property>

    <property alias="DateField">commentaryDate</property>

    </folderProvider>

    </folderProviders>

    <autoFolders>

    <autoFolder docType="CommentaryDetail"

               folderProviderAlias="DateFolderProvider_Full"

               folderDocType="AutoFolder" />

    </autoFolders>

    </settings>

     

  • Sam Pearson 36 posts 89 karma points
    May 02, 2013 @ 16:31
    Sam Pearson
    0

    Hi Stuart,

    What versions of Umbraco / Autofolders are you using?

    Looking at your config, it looks like you've got your ' rootFolders="//* [@isDoc and @level=2] ' attribute in the wrong place - this should be an attribute of <autofolder  /> , not <folderProvider  /> .

    I've also found that for config changes to take effect you have to disturb the autofolders.dll in the bin (move it out the bin and then back in).

    Cheers

    -Sam

Please Sign in or register to post replies

Write your reply to:

Draft