Copied to clipboard

Flag this post as spam?

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


  • Shane Harris 6 posts 68 karma points
    Jul 03, 2014 @ 11:15
    Shane Harris
    0

    Master layout saving as .masterpage not .cshtml

    Unsure exactly what has changed in the 24hours from when I finished with it, but today any layouts are going in the masterpages folder and saving with the .masterpage extension.

    I have checked and the default rendering engine is set to MVC.

    Any suggestions would be greatly appreciated.

    Shane

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jul 03, 2014 @ 11:25
    Jan Skovgaard
    0

    Hi Shane

    That sounds really odd - What version of Umbraco are you currently using?

    Does the trace log give any clue if you check it at /app_data/logs ?

    /Jan

  • Shane Harris 6 posts 68 karma points
    Jul 03, 2014 @ 11:36
    Shane Harris
    0

    Hi Jan,

    Nothing sticks out in the trace log. Using 7.1.4.

    I did wonder if somewhere between me changing the default layout and doctypes several times has caused some issues?

    This is currently not in production yet so if need be I will reinstall it.

    Shane

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jul 03, 2014 @ 15:06
    Jan Skovgaard
    0

    Hi Shane

    That's really odd - Are you the only one working on the site? Something must have triggered it somehow.

    /Jan

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Jul 04, 2014 @ 08:55
    Jeavon Leopold
    0

    I'm pretty sure that it is only the setting in umbracoSettings.config that determines this. I have once experienced .master files being created alongside my .cshtml files but that was down to uSync and the fact that my layout View was called "MasterPage" as I was converting a WebForms site to MVC, changing it's name to "MasterView" solved it.

  • Shane Harris 6 posts 68 karma points
    Jul 05, 2014 @ 01:39
    Shane Harris
    102

    Thanks for your help guys. Turns out it was because when I pasted some html from the old site I had missed a forms element which meant that Umbraco obviously recognised and changed it to a master template.

    <asp:contentplaceholder id="cp_content" runat="server"></asp:contentplaceholder>
    
  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jul 08, 2014 @ 20:34
    Jan Skovgaard
    0

    Hi Shane

    Happy to see you got it solved and thanks for sharing the issue - But don't know if it's obvious that Umbraco changes the template when some code is copied that was intended for another template engine? Should'nt that provide some kind of error on the frontend instead?

    Of course it's an edge case but I bet it took quite a while to figure it out? :) Maybe it should be reported on the issue tracker?

    /Jan

  • Blake Watt (Clerke) 106 posts 351 karma points MVP 2x
    Aug 07, 2014 @ 17:49
    Blake Watt (Clerke)
    0

    I ran into this same issue too on 7.1.4 doing the same thing. I missed an umbraco:item from an old version that was copied over. Thanks for sharing!

Please Sign in or register to post replies

Write your reply to:

Draft