Copied to clipboard

Flag this post as spam?

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


  • Johan 188 posts 380 karma points
    Sep 26, 2011 @ 11:21
    Johan
    0

    Alternative masterpage folder

    In my umbraco root folder i have a dev folder that mirrors the files I'm working with in Umbrao (the masterpages and CSS folders for example). Is it possible to make umbraco look for a master page in the dev folder? If it's possible it'd be awesome to do something like this when testing your code.

    http://www.mywebsite.com?alttemplate=dev
  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Sep 26, 2011 @ 11:45
    Lee Kelleher
    0

    Hi Johan,

    Yes, you can set the path for the masterpages in a Web.config appSetting:

    <add key="umbracoMasterPagesPath" value="~/dev/masterpages" />

    You can do this with most of the other filepaths too: http://our.umbraco.org/wiki/reference/webconfig/additional-umbraco-specific-appsettings

    Cheers, Lee.

  • Johan 188 posts 380 karma points
    Sep 26, 2011 @ 15:05
    Johan
    0

    Thanks, that did work. But it was not possible to change folder on the fly. When i updated the web.config with the new path i had to create a new masterpage from within Umbraco for it to work. So having all my alt dev templates in its own separate folder will probably not be possible at all :/.

Please Sign in or register to post replies

Write your reply to:

Draft