Copied to clipboard

Flag this post as spam?

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


  • Jonny Irwin 91 posts 153 karma points
    Oct 03, 2011 @ 16:52
    Jonny Irwin
    0

    Config settings for item providers in Courier

    I'm currently working on getting Courier to deploy a major site from one environment to another using Courier.  As we have made a number of extensions to the umbraco admin site, not all files are picked up by the default config settings for courier.

    I had a look at the courier.config file and saw the following:

    <itemProviders>
    <folderItemProvider>
                <include>
                    <!--<folder>~/media/assets/somefolder</folder>-->
                </include>
            </folderItemProvider>
            <fileItemProvider>
                <files>
                </files>
            </fileItemProvider>
            <mediaItemProvider>
                <includeChildren>true</includeChildren>
            </mediaItemProvider>
            <!-- Add the fully classified Class name to ignore a provider from loading... -->
            <ignore>
                <!--<add>my.namespace.*</add>-->
            </ignore>
        </itemProviders>

    This looks like it may be of use to me, using the fileItemProvider and folderItemProvider to add files to our revisions that aren't standard umbraco things. However, I can't find any documentation anywhere on what config settings are available for these (other than the commented out example for folderItemProvider).

    Is anyone able to give me examples of how I can use fileItemProvider? (and if there are any other config settings available for folderItemProvider?)

    Thanks very much!

    Jonny

  • Jonny Irwin 91 posts 153 karma points
    Oct 06, 2011 @ 12:44
    Jonny Irwin
    0

    Ok,  It seems really, really wrong...but...the following seems to work

     

    <fileItemProvider>
    <files>
    <folder>~/image/twitter.gif</folder>
    </files>
    </fileItemProvider>

     

    It shows any files with a folder icon beside them in the UI but it does seem to include the files in the revision.

    Is this the best way to go or does anybody know the proper settings for this?


  • Jonny Irwin 91 posts 153 karma points
    Nov 17, 2011 @ 12:37
    Jonny Irwin
    0

    In case anyone else comes across this issue, this has been fixed in Courier 2.5 to now be:

    <fileItemProvider>
    <files>
    <file>~/image/twitter.gif</file>
    </files>
    </fileItemProvider>
Please Sign in or register to post replies

Write your reply to:

Draft