Copied to clipboard

Flag this post as spam?

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


  • prl 32 posts 54 karma points
    Mar 15, 2010 @ 18:37
    prl
    0

    Can't preview content

    Hello,

    I installed Umbraco and tried to do something really simple. Created a Master template and a document type called Homepage (with one property "name"). This document type has the respective template which has the MasterFilePage set to the Master template I created.. The Homepage template has only <h3>Homepage</h3>.

    But when I try to preview this content I get the following page:

    http://img411.imageshack.us/img411/5839/umbracoshot.jpg

    The link in the address bar is: localhost:51534/1051.aspx?umbVersion=9f3a9538-1f04-432c-aebd-340405b4af61 (but even if i open the localhost:51534/homepage.aspx address I get the same thing).. So, what's this and how can I solve it?

    Thanks in advance

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Mar 15, 2010 @ 20:25
    Douglas Robar
    0

    Very strange that you'd get a trace without requesting it.

    I suspect your masterpage template is not referencing the underlying umbraco template properly. Can you paste in the code of the template associated with your homepage document type?

    cheers,
    doug.

  • prl 32 posts 54 karma points
    Mar 15, 2010 @ 20:30
    prl
    0

    Hey, thanks for the reply. Here's the code I have..

    Master Template:

    <%@ Master Language="C#" MasterPageFile="/umbraco/masterpages/default.master" AutoEventWireup="true" %>

    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
    <HTML>
       <HEAD>
          <TITLE>My first HTML document</TITLE>
       </HEAD>
       <BODY>
        <h1>Master Header</h1>
        <br /><br />
       
        <asp:PlaceHolder ID="mainBodyPlaceHolder" runat="server" />
       
        <br /><br />
        <h1>Master Footer</h1>
       </BODY>
    </HTML>
    </asp:Content>

     

    And in the Homepage template, just this:

    <%@ Master Language="C#" MasterPageFile="/masterpages/TestMasterPage.master" AutoEventWireup="true" %>

    <asp:Content ContentPlaceHolderID="mainBodyPlaceHolder" runat="server">
        <h3>HOMEPAGE MAIN BODY</h3>
    </asp:Content>

     

    Thanks!

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Mar 15, 2010 @ 21:25
    Douglas Robar
    0

    In your Master template, replace this line:

     <asp:PlaceHolder ID="mainBodyPlaceHolder" runat="server" />

    with this line:

    <asp:ContentPlaceHolder Id="mainBodyPlaceHolder" runat="server" />

    Does that solve it?

    cheers,
    doug.

  • prl 32 posts 54 karma points
    Mar 16, 2010 @ 11:25
    prl
    0

    It doesn't, I keep getting the same page every time I try to preview the page either from Umbraco or from Visual Studio.. I've done another test project in Umbraco and that time everything went smoothly, I don't understand why this happens now.

    Thanks

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies