Copied to clipboard

Flag this post as spam?

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


  • overflew 87 posts 110 karma points
    Nov 17, 2010 @ 09:55
    overflew
    0

    Autofolder going bananas, generating content in wrong parent folder

    Hey there, hopefully someone can help on this one - it's quite odd:

    I have a Site structure like so:

    - Home
    -- Area 1
    --- (date)
    ---- Area1DocType
    -- Area 2
    --- (letters)
    ---- Area2DocType
    -- Area 3
    --- (letters)
    ---- Area3DocType

    I have a separate AlphaProvider connected to 2 of the areas (Letter on the other), but what I'm finding is, for example: Creating an item in Area 3, is moving it to Area 1 & creating the alpha folder. Could anyone please point out if this is a known issue, or if there's something wrong with the config?

    <settings>
      <folderProviders>
        <folderProvider alias="DateFolderProvider_Simple"
                assembly="/bin/AutoFolders"
                type="AutoFolders.Providers.DateFolderProvider">
          <property alias="MonthFormat">MMMM</property>
          <property alias="YearFormat">yyyy</property>
        </folderProvider>
    
        <folderProvider alias="AlphaFolder"
               assembly="/bin/AutoFolders"
               type="AutoFolders.Providers.AlphaFolderProvider" >
          <property alias="UseUppercase">true</property>
        </folderProvider>
      </folderProviders>
    
      <autoFolders>
        <autoFolder docType="Area1DocType"
                 folderProviderAlias="DateFolderProvider_Simple"
                 folderDocType="Area1DateFolder"
                 rootFolders="//node[@level=2]"
                 />
    
        <autoFolder docType="Area2DocType"
                 folderProviderAlias="AlphaFolder"
                 folderDocType="Area2LetterFolder"
                    rootFolders="//node[@level=2]"
                    />
    
            <autoFolder docType="Area3DocType"
                 folderProviderAlias="AlphaFolder"
                 folderDocType="Area3LetterFolder"
                    rootFolders="//node[@level=2]"
                    />
      </autoFolders>

    Much appreciated...

  • overflew 87 posts 110 karma points
    Nov 17, 2010 @ 10:07
    overflew
    0

    Note - It is creating the (empty) letter directory in Area 3, but also creating the letter dir in Area 1, and moving the item there.

    Both letter directories are the ones configured for Area 3.

  • Chris Koiak 700 posts 2626 karma points
    Nov 17, 2010 @ 13:05
    Chris Koiak
    0

    Can you make you're rootFolders xpath more specific, maybe bring in the appropriate parents folder alias?

    Something like

    //node[@level=2 and @docTypeAlias='Area3LetterFolder']

    If this doesn't work, try removing the rootFolders attribute.

    Chris

  • overflew 87 posts 110 karma points
    Nov 20, 2010 @ 01:09
    overflew
    0

    Cheers. I found this was a result of not refreshing the cache ('Republish entire site') from the root content node.

    We're running data migrations (so shifting the underlying database) semi frequently, and evidentially it was looking up the parent ids weird...

Please Sign in or register to post replies

Write your reply to:

Draft