Copied to clipboard

Flag this post as spam?

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


  • Danny Gelens 6 posts 23 karma points
    Nov 28, 2009 @ 11:48
    Danny Gelens
    0

    Problem with settings, please help

    Hi Chris,

    My site structure is as following:

    Home

    - Press

    -- News

    -- Events

    I wanted to use the Autofolder on the News and Events folder.

    I've installed autofolder on an clean installed Umbraco 4. After this i modified the config like this:

    <?xml version="1.0" encoding="utf-8" ?>
    <Settings>
        <FolderProviders>
            <FolderProvider alias="Newsoverview"
                    assembly="/bin/AutoFolders"
                    type="AutoFolders.Providers.DateFolderProvider"
                    TruncatedFolderUrl="folder-1/folder-2/newsitem"
                    rootFolder="//node[@level = 2]">
                <Property alias="FolderDocType">Newsoverview</Property>
                <Property alias="DayFormat">dd</Property>
                <Property alias="MonthFormat">MM</Property>
                <Property alias="YearFormat">yyyy</Property>
            </FolderProvider>
           
             <FolderProvider alias="AlphaFolder"
                    assembly="/bin/AutoFolders"
                    type="AutoFolders.Providers.AlphaFolderProvider" >
                <Property alias="FolderDocType">DateFolder</Property>
                <Property alias="UseUppercase">true</Property>
            </FolderProvider> 
           
        </FolderProviders>
        <DocTypes>
            <DocType alias="newsitem" folderProvider="newsoverview"/>
        </DocTypes>
    </Settings>

    When I add a newsitem in the News folder I dont get the 2009 > 11 > 28 > newsitem.

    If I create a newsfolder direct under the Home folder it works.

    I tried to change the settings but i can't get it fixed. Can you help me please

     Thanks

    Danny

  • Chris Koiak 700 posts 2626 karma points
    Nov 28, 2009 @ 12:38
    Chris Koiak
    0

    It's probably your 'rootFolder' setting, this restricts the parent (root) nodes that autofolders will operate with. If the parent of your new page does not match the xpath then autofolders will execute.

    In your structure changing the setting to rootFolder="//node[@level=3]" will probably work, but you coculd also use the docType alias ofyour parent nodes.

    The discussion that spawned this feature is http://our.umbraco.org/projects/autofolders/general/4415-Possible-New-feature

     

Please Sign in or register to post replies

Write your reply to:

Draft