Timsn is absolutely correct... the old tutorial is from 2007 and an earlier version of umbraco. Umbraco 4 uses standard asp.net masterpages so a quick search on the internet should find a lot of help about the <asp:ContentPlaceHolder> and <asp:Content> tags, for instance.
The wiki entry is helpful as well.
You might also find the Runway or CWS starter websites helpful as a way of seeing working examples.
In that case, I understand that Umbraco V4 use .Net 's MasterPage. My next question is "Why does a newly created template need to inherit from an umbraco's default masterpage?"
Umbraco's default masterpage is the one that umbraco already knows about and uses to render your output. By using umbraco's default masterpage as the master you can create your templates using any name you like without having to make any other changes to umbraco or your site.
...it's a lot easier to use it than it is to describe it.
The differences between the nibble.de 's tutorial and the Umbraco V4 's template
Today I read one Niels Hartvig's turtor here http://umbraco.org/blog/2007/12/12/dec-8-adding-page-information-to-templates but when creating a new template in Umbraco V4 I see that it has the predefined text as belowing other than blank text as mentioned in the tutor.
<%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" %>
<asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
</asp:Content>
Please tell me why there's such difference.
Nam.
This is because umbraco v4 introduces the use of asp.net masterpages. The blogpost looks like umbraco v3 was used.
You can read more about the masterpages in this wiki entry
Timsn is absolutely correct... the old tutorial is from 2007 and an earlier version of umbraco. Umbraco 4 uses standard asp.net masterpages so a quick search on the internet should find a lot of help about the <asp:ContentPlaceHolder> and <asp:Content> tags, for instance.
The wiki entry is helpful as well.
You might also find the Runway or CWS starter websites helpful as a way of seeing working examples.
cheers,
doug.
Thanks Tim & Douglas!
In that case, I understand that Umbraco V4 use .Net 's MasterPage. My next question is "Why does a newly created template need to inherit from an umbraco's default masterpage?"
Nam.
Umbraco's default masterpage is the one that umbraco already knows about and uses to render your output. By using umbraco's default masterpage as the master you can create your templates using any name you like without having to make any other changes to umbraco or your site.
...it's a lot easier to use it than it is to describe it.
cheers,
doug.
is working on a reply...