Creative Web Specialist - An online portfolio and resource site of Warren Buckley

Latest Posts

Jun23th

Masterpages in Umbraco V4

Author
Warren Buckley

Hello all I am currently looking into making my Creative Website Wizard package ready for V4 of Umbraco and with this I will move away from the OLD templating system to the NEW ASP.NET MasterPages support. With this I thought I would share with you all the new Syntax for the Umbraco functionality.

Page Fields

Before
<?UMBRACO_GETITEM field="pageName"/>

After
<umbraco:Item field="pageName" runat="server"/>

Macros

Before
<?UMBRACO_MACRO macroAlias="XSLTNavi" ></?UMBRACO_MACRO>

After
<umbraco:Macro macroAlias="XSLTNavi" Alias="XSLTNavi" runat="server"/>

Child Template

Before
<?UMBRACO_TEMPLATE_LOAD_CHILD/>

After
<asp:ContentPlaceHolder ID="MasterTemplateContentPlaceHolder" runat="server"></asp:ContentPlaceHolder>

More information

For more information on ASP.NET Master Pages I recommend this site:
http://www.asp.net/Learn/master-pages/

7 comments
23rd June, 2008
Very nice reference Warren!
23rd June, 2008
@Morten thanks for the comment.

I will be using this post for my own reference as I am bound to forget the syntax in the beginning.
24th June, 2008
Thanx Warren, it really helped me getting started with the templates. Works good as reference for me too ;-)
16th July, 2008
Warren,

I was directed here haviong just installed Umbraco manually and not having a sample site to learn Umbraco off. I believe you can help me with your Creative Website Wizard?

Regards,
Richard
17th July, 2008
Hello Richard,
Yes the best place is to download my website wizard package from the repoistory inside umbraco.

If you are using v3 this can be found by going to the Developer section and Right Clicking Macros and Selecting Import Package.

A new window will appear and select the option Browse Repository.

Find my package and follow the steps, if you have any further questions feel free to ask.

Warren
29th July, 2008
Arethe new master pages all going to render the ASPNET Form tag? That and the __VIEWSTATE tag are the most annoying things about ASP.NET and why Umbraco v3 is so good.
30th July, 2008
@dillorscroft I am no expert on this, but whatever Native ASP.NET masterpages do it will do in Umbraco.

If you have any more specific questions I recommend the forum.

Warren
Post a comment »

My Skill Set

This is a quick list of my skill set to date

  • XHTML
  • CSS
  • Photoshop (Slicing)
  • XSLT
  • ASP.NET
  • Umbraco .NET CMS

My Last.FM

I am listening to:

  • If I Could by Hundred ReasonsIdeas Above Our Station28 Aug 2008, 12:55
  • What Thought Did by Hundred ReasonsIdeas Above Our Station28 Aug 2008, 12:52
  • Dissolve by Hundred ReasonsIdeas Above Our Station28 Aug 2008, 12:48

My Flickr

Check out all my pics from flickr

Warren Buckley is an umbraco MVP 2008/2009 Warren Buckley is an umbraco level 1 certified developer

Photo of Warren Buckley Warren Buckley is a Creative Web Specialist based in Leigh on Sea, Essex , UK.