Copied to clipboard

Flag this post as spam?

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


  • anthony hall 222 posts 536 karma points
    Oct 17, 2009 @ 13:46
    anthony hall
    0

    A - Z autofolders

    Hi all. 

    I want the following structure

    - films (alias = films)
    - A-Z ( do i need to create a doc for this ) 
    - film ( alias - film)

    ie mydomain.com/films/s/starwars

    probably a dumb question, but i can't find any example of the autofolder using A-Z. 

    How should i set out my autofolders.config

     

    <?xml version="1.0" encoding="utf-8" ?>
    <Settings>
        <FolderProviders>
            <FolderProvider alias="DateFolder"
                    assembly="/bin/AutoFolders"
                    type="AutoFolders.Providers.DateFolderProvider" 
                    TruncatedFolderUrl="folder-1/folder-2/newsitems"
                    rootFolder="//node[@level = 2]">
                <Property alias="FolderDocType">DateFolder</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="film" folderProvider="AlphaFolder"/>
        </DocTypes>
    </Settings>

     

     

  • Kim Andersen 1447 posts 2197 karma points MVP
    Oct 17, 2009 @ 16:08
    Kim Andersen
    2

    Jep, you nedd to create a document type for the autofolders.

     

    You have specified the AlphaFolder as your FolderProvider. This means this code is used:

    <FolderProvider alias="AlphaFolder"
                   
    assembly="/bin/AutoFolders"
                   
    type="AutoFolders.Providers.AlphaFolderProvider" >
         
    <Property alias="FolderDocType">DateFolder</Property>
         
    <Property alias="UseUppercase">true</Property>
    </FolderProvider>

    The property called FolderDocType is set to "DateFolder". This means that this is the document type that will be created as the autofolder.

    So you need to create a document type called "DateFolder", and remember to allow the "film"-document type to be a child of the DateFolder.

     

    Hope this helps, otherwise write again :)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies