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/

10 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
08th September, 2008
Hi Warren,


Can you please explain how to work with Multiple ContentHolders?
Thanks & Regards,
Ammu
3rd November, 2008
Hey Warren, I really like your site. Very useful.

Do you know how easy the upgrade (3-4) process will be? Presumably it'll mean updating the templates by adding the new macro formats in place of the old ones?

Also, I'm going to have a go at getting your RSSFeed working in Umbraco 3 this PM. Any tips?
(I've tried the one Niel's RSSFeed (might be the same one) but it publishes node numbers rather than the name as the URL).

Cheers
George
3rd November, 2008
@George. Thanks I'm glad you like the site.

In regards to V3 to V4 upgrade its really smooth. When you upgrade they change it to the new format and markup for you. But as always you should check with a local DEV version before doing on a production site.

The RSS feed I use is an XSLT version that serves up the XML/RSS format - where as Niels is a package that produces a physical file everytime a new node is published I think.

It's upto you which method you prefer, but I feel the XSLT way is that you have soo much more control over the output.

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:

  • The Truth Is So Boring by SoulwaxAny Minute Now2 Jul 2009, 13:43
  • NY Excuse by SoulwaxAny Minute Now2 Jul 2009, 13:38
  • NY Excuse (Fast Version) by Soulwax2 Jul 2009, 13:35

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.