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:
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?
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?
<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 />
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.
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
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.
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!
In your Master template, replace this line:
with this line:
Does that solve it?
cheers,
doug.
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
is working on a reply...