Copied to clipboard

Flag this post as spam?

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


  • Toni Becker 146 posts 425 karma points
    Jun 20, 2011 @ 10:40
    Toni Becker
    0

    Templating - .master - Question

    Hy everybody. I#m tired of going everytime to the backoffice while developing a site.

    I'm working with webmatrix and inside this i have my folder with the masterpages.

    So i'm creating my Master.master and my startpage.master inside Webmatrix via new file.

    But how can i tell umbraco to list it in the backoffice when it's created.

    Hope somebody can help. Thanks a lot

  • Rich Green 2246 posts 4008 karma points
    Jun 20, 2011 @ 11:03
    Rich Green
    0

    Hey Toni,

    Umbraco will just pick these files up, no extra configuration needed.

    Prehaps there's something different with the way you're setting up your project?

    Possibly the answer is in this video http://umbraco.com/help-and-support/video-tutorials/getting-started/working-with-webmatrix might be worth a watch.

    Cheers

    Rich

     

  • Kim Andersen 1447 posts 2196 karma points MVP
    Jun 20, 2011 @ 11:05
    Kim Andersen
    0

    Hi Toni

    I'd suggest that you create your templates from the Umbraco back office instead of creating them from WebMatrix. Even though the templates are physical .master-files in the file system, I'm pretty sure there must be a connection to Umbraco through the database. Best practise, in my mind, is to create the templates from the back office, and then you can edit the file through your WebMatrix/Visual Studio etc.

    /Kim A

  • Toni Becker 146 posts 425 karma points
    Jun 20, 2011 @ 11:07
    Toni Becker
    0

    Editing is not the problem. But the apptree in the backoffice is not recognizing new site.master created with webmatrix. :/

  • Rich Green 2246 posts 4008 karma points
    Jun 20, 2011 @ 11:09
    Rich Green
    0

    I always thought these were picked up automatically by Umbraco? 

    Rich

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Jun 20, 2011 @ 11:13
    Stefan Kip
    0

    These files are not picked up automatically by umbraco.

    What you can do is just create them with WebMatrix of Visual Studio, then leave it opened in one of there editors and create it with the same name in the umbraco back-office (like somepage.master -> "somepage").

    When you go back to the editor, you'll be asked if you'd like to reload. Just click No, save the file again and you're done.

    For more info, I blogged about this in the past; http://tech.kipusoep.nl/2010/07/23/umbraco-45-visual-studio-2010-dotless-jquery-vsdoc-squishit-masterpages/ (last paragraph)

  • Toni Becker 146 posts 425 karma points
    Jun 20, 2011 @ 11:16
    Toni Becker
    0

    okay thanks. than i have to go this way :)

Please Sign in or register to post replies

Write your reply to:

Draft