Copied to clipboard

Flag this post as spam?

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


  • Martin Rud 260 posts 1001 karma points c-trib
    Feb 19, 2023 @ 11:44
    Martin Rud
    0

    Package Datefolders: Where to add the configuration?

    I have just installed the Infocaster Date folders package (https://github.com/Infocaster/Datefolders) and is about to do the configuration. Documentations says:

    After installing the package, just complete the configuration steps below and you'll be good to go!
    
    ...
    
    "DateFolders": {
        "ItemDateProperty":  "",            
        "CreateDayFolders": false,          
        "OrderByDescending": true,          
        "FolderDocType": "dateFolder",      
        "ItemDocTypes": [ "contentPage" ],
        "AllowedParentIds": [ 2222 ],
        "AllowedParentDocTypes": ["blog"]
    }
    

    But where to put this configuration? In appsettings.json? If yes, where (as a root property)?

  • Dennis Pedersen 5 posts 136 karma points
    Feb 19, 2023 @ 21:37
    Dennis Pedersen
    101

    In the code it looks like optionspattern. So yes that would be in appsettings as root element yes 🙂

  • Infocaster BV 1 post 117 karma points
    Feb 20, 2023 @ 05:41
    Infocaster BV
    0

    Hi there!

    I would've answered earlier if my github login had worked.

    Yes, you pretty much answered your own question. The configuration goes into the root of the appsettings.json file. So as an example:

    {
        "Umbraco": {
            // ... Umbraco settings
        },
    
        // You might paste your settings here:
        "DateFolders": {
            ...
        }
    }
    

    Kind regards,
    Dennis

  • Martin Rud 260 posts 1001 karma points c-trib
    Feb 20, 2023 @ 05:59
    Martin Rud
    0

    Thanks! :)

    I shared the question here: https://www.facebook.com/groups/umbracowebdevs/posts/1745949915806892/

    Therefore I have marked Dennis Pedersens comment as answer. :)

Please Sign in or register to post replies

Write your reply to:

Draft