Why Umbraco rocks - alternative templates

The main building blocks of umbraco are as you know document types and templates. When creating a document types the umbraco interface will give you the options to also create a templates that is then setup as the default template on that document type. If you open up the details of a document types you’ll be able to see the ‘allowed templates’ part on the info tab.


Document types aren’t limited to 1 template and this is great! You can easily swith to an ‘alt template’ by simply editing the url of your page.

So if you would have a homepage.aspx and you want to apply templatex on it you can do this by changing the url to


another option is this


In the beginning I didn’t use alternative templates that much but it’s a great way to keep your content section clean.

For example an email to a friend page, instead of making this a new documenttype and adding it to the content en then passing the id of the page you want to email…

You can simply add an email to a friend template and call it up as an alternative template, that way you won’t need to pass the nodeid because you are still on the same node !

82 Comments so far

  1. Adz on August 9th, 2008

    Hi Tim,

    This is a useful tip.

    I think in Umbraco v4 this could be further extended:

    What I’d really like to see in Umbraco 4, which uses .NET Master Pages, is the ability to dynamically change the master page (programatically). This is often called “Dynamic Master Pages” Master Pages.aspx

    The idea would be that rather than change the template, you change the master template (dynamically, using C# embedded in the ASP)

    But to get this functionality I think a modification is required to the umbraco source code…

  2. Soeren Sprogoe on August 9th, 2008

    It’s also an excellent way of making simpler, cleaner versions of a page used for “Print this page” links.

    Just make a clean template and add ?alttemplate=templatePrintable to the current URL.

  3. Warren Buckley on August 9th, 2008

    Hiya Tim nice post for beginners.
    When I first started using umbraco I didn’t know about altTemplates when I was developing my website wizard package.

    But when I come to do the new updated version of the package to work with V4 of Umbraco, the physical node for google sitemap and the email a friend will be dropped and replaced with altTemplates.


  4. Petr Snobelt on August 11th, 2008

    Hi, alternative templates are great, but be aware:
    Umbraco doesn’t check if template is allowed for specific page!
    If you use something like autoform and don’t any authorization to edit page, anyone can then edit your page, if know right name of your edit template simply by adding ?alttemplate=edit_template_name.


  5. Hartvig on August 11th, 2008

    @Petr: That’s intentional as it would be a false trust. Security shouldn’t be based on what templates are allowed, but more on validation user credentials which umbraco can’t handle automatically in the template switching layer. So you should always validate credentials in your business layer.

    Regarding switching templates with AutoForm you’d get an exception unless all your templates has the exact same properties with same aliases.


  6. Petr Snobelt on August 12th, 2008

    @Hartvig: I agree with you, that security should be based on users credentials.
    But sometimes this isn’t possible if umbraco doesn’t check allowed templates.
    When you create autoform template for adding blog comments, you want to allow all users to use this template. But when umbraco doesn’t check if this (blog comment template) is allowed for another document type (for example news) and by using querystring evil user can assign this (free for all) template for news documenttype. Then he can add new news item using this template, or if documenttype in macro is specified add comment to existing news.


  7. Laurie on January 7th, 2010

    Is it possible to use the template name, rather than alias?

    Or do I need to use urlredirection to fix this?


  8. DDubyah on November 29th, 2010

    Really useful tip. We’re just starting to work with Umbraco so this is good to know. Thanks.

  9. hack on March 11th, 2014

    WOW just what I was looking for. Came here by searching for

  10. martinique on October 6th, 2015

    Thanks for your personal marvelous posting! I definitely enjoyed reading it, you could be a great
    author. I will ensure that I bookmark your blog and will often come
    back at some point. I want to encourage you to definitely
    continue your great job, have a nice holiday weekend!

  11. best free vpn service on October 14th, 2015

    Hello, this weekend is good in support of me, since
    this occasion i am reading this great informative post
    here at my house.

  12. visit the website on January 20th, 2016

    This is my first time go to see at here and i am
    actually happy to read everthing at single place.

  13. Stefaan Christiaens on February 27th, 2017

    Alt templates, why did I never hear about this in the 4 years I am working with Umbraco… Could have made my life so much easier. Thanks for yet another excellent post.

  14. try this out on November 10th, 2017

    grea issujes altogether, you just received a new reader.

    What could you suggest about your publish that you just made a few
    days ago? Any sure?

  15. Kayleigh on December 7th, 2017

    Thhis blog was… how do I say it? Relevant!!
    Finally I’ve found something which heled me. Thanks a lot!

  16. Toney on December 11th, 2017

    Pretty! This has been a really wonderful article. Thank you for supplying these details.

  17. Skye on December 24th, 2017

    Really when someone doesn’t be aware of afterward its up to other users that they will
    assist, so here it takes place.

  18. mushroom allergy truffles on January 30th, 2018

    Fantastic items from you, man. I have bear in mind
    your stuff previous to and you are simply too excellent.
    I actually like what you’ve obtained here, certainly like what you’re
    saying and the best way during which you say it. You make
    it enjoyable and you continue to care for to stay it sensible.
    I can not wait to read much more from you. This is actually a wonderful website.

  19. on February 25th, 2018

    These are the most sought after Jobs on the world wide web.

  20. fake Diplomas that Look real on February 26th, 2018

    I constantⅼү spent my half an hour to read tһis website’s posts aⅼl the time ɑlong with a
    cup of coffee.

  21. minions 2 on March 29th, 2018

    I am not certain the place you’re getting your info, but great topic.
    I needs to spend a while finding out much more or figuring out more.
    Thank you for magnificent info I was on the lookout for this info
    for my mission.

  22. Best Internet provider in Myanmar on April 11th, 2018

    Unquestionably imagine that which you stated.

    Your favorite justification appeared to be at the web the easiest thing to take note of.
    I say to you, I definitely get irked at the same time
    as folks think about concerns that they plainly do not understand about.
    You controlled to hit the nail upon the top and defined
    out the whole thing with no need side effect , other folks
    can take a signal. Will likely be back to get
    more. Thank you

  23. Chet on April 15th, 2018

    Having read this I thought it was really enlightening.
    I appreciate you spending some time and energy to put this informative
    article together. I once again find myself spending a significant amount of time both reading and posting
    comments. But so what, it was still worth it!

  24. Ericka on April 15th, 2018

    I am really enjoying the theme/design of your web site. Do you ever
    run into any web browser compatibility issues?
    A number of my blog readers have complained about my website not
    operating correctly in Explorer but looks great in Firefox.
    Do you have any tips to help fix this issue?

  25. Maria on May 17th, 2018

    I do not even know how I stopped up here, however I assumed this post used to be good.

    I do not recognise who you’re however definitely you are going to a famous blogger if you aren’t already.

  26. fake masters degree template on May 28th, 2018

    I аm sure this post has touched all the internet viewers, its realⅼy really good piece of writing
    on building up new webloɡ.

  27. equipement cuisine on June 13th, 2018

    Hello to every one, since I am actually eager of reading this webpage’s post to be updated on a regular basis.
    It contains nice information.

  28. Nelle on July 8th, 2018

    If some one wishes expert view regarding blogging afterward i
    advise him/her to go to see this web site, Keep up the fastidious work.

  29. Deana on July 8th, 2018

    What i do not realize is in truth how you’re no longer really a lot more smartly-favored than you may be right
    now. You are so intelligent. You already know therefore
    considerably with regards to this matter, produced me personally consider
    it from a lot of various angles. Its like men and women are not interested until it’s one thing
    to do with Girl gaga! Your individual stuffs nice. At all times handle it up!

  30. Shayna on July 19th, 2018

    Hello, the whole thing is going fine here and ofcourse every one is sharing data, that’s in fact excellent, keep
    up writing.

  31. Jermaine on July 19th, 2018

    Hi there, this weekend is good for me, as this occasion i am reading this fantastic informative piece of writing here at my house.

  32. zobaczysz tutaj on December 8th, 2018

    Hi, its good piece of writing about media print,
    we all understand media is a impressive source of information.

  33. studio mastering on December 15th, 2018

    What i don’t understood is if truth be told how you’re now not actually much more neatly-liked than you may be now.
    You’re very intelligent. You recognize thus considerably on the subject of this matter,
    produced me in my opinion believe it from a lot of
    varied angles. Its like men and women are not interested unless it’s something to
    do with Lady gaga! Your own stuffs great. All the time care for it up!

  34. hip support on December 18th, 2018

    Hi there friends, nice piece of writing and good
    arguments commented at this place, I am in fact enjoying
    by these.

  35. vape liquid on December 23rd, 2018

    Fantastic items from you, man. I have bear in mind your stuff previous to and
    you’re simply extremely great. I really like what you’ve acquired right here, really like what you are saying and the way during
    which you say it. You’re making it entertaining and you continue
    to care for to keep it smart. I can not wait to read far more from you.
    This is really a tremendous web site.

  36. Zombie Royal on December 31st, 2018

    I am regular reader, how are you everybody? This piece of writing posted at
    this web page is really nice.

  37. Blockchain database on January 6th, 2019

    There’s certainly a lot to learn about this issue. I really like all of the points
    you have made.

  38. Mietlift on January 8th, 2019

    What i do not realize is if truth be told how you’re no longer actually much more well-appreciated than you might
    be right now. You are so intelligent. You understand therefore significantly in the case of this matter, produced
    me for my part consider it from a lot of numerous
    angles. Its like women and men aren’t involved unless it’s something to accomplish
    with Lady gaga! Your own stuffs excellent. Always care for it up!

  39. Mayur Public School on January 11th, 2019

    Hello mates, nice piece of writing and good arguments commented here,
    I am really enjoying by these.

  40. ads on January 11th, 2019

    This is my first time visit at here and
    i am truly happy to read all at alone place.

  41. skilled worker canada on January 11th, 2019

    I love reading a post that can make people think.
    Also, thanks for allowing for me to comment!

  42. carpet protection on January 19th, 2019

    Yes! Finally something about correx.

  43. car loan comparison on January 21st, 2019

    May I simply say what a comfort to uncover somebody who genuinely knows what they are
    talking about on the internet. You actually know how to
    bring an issue to light and make it important. More people ought to read this and understand this side
    of your story. I can’t believe you aren’t more popular since you certainly possess the gift.

  44. Google on January 29th, 2019

    Wonderful story, reckoned we could combine some unrelated data, nonetheless truly worth taking a appear, whoa did a single find out about Mid East has got a lot more problerms too.

  45. Kaley on January 31st, 2019

    At this time I am going to do my breakfast, afterward having
    my breakfast coming again to read more news.

  46. 2 storey extension on February 4th, 2019

    I read this article completely concerning the difference of most recent and earlier technologies, it’s awesome article.

  47. cambodian lawyer on February 9th, 2019

    What’s up mates, good post and good arguments commented at this
    place, I am really enjoying by these.

  48. auto Transport quote instant on February 12th, 2019

    I read this article completely regarding the resemblance of most up-to-date and previous technologies, it’s amazing article.

  49. transport auto quoter on February 13th, 2019

    of course like your website however you need to check the spelling on several of your posts.
    A number of them are rife with spelling problems and
    I to find it very troublesome to tell the reality on the other hand I will surely come again again.

  50. Custom home builders on February 14th, 2019

    My relatives every time say that I am killing my time
    here at web, but I know I am getting experience everyday by
    reading such nice articles or reviews.

  51. IcyCanada on February 14th, 2019

    What’s up colleagues, pleasant piece of writing and nice arguments commented at this place, I am truly enjoying by these.

  52. What’s up to every one, for the reason that I am really keen of reading
    this blog’s post to be updated on a regular basis. It includes nice stuff.

  53. www on July 22nd, 2019

    Great goods from you, man. I’ve understand your
    stuff previous to and you are just too magnificent.
    I really like what you have acquired here, certainly like what you’re saying and the way in which you say it.
    You make it enjoyable and you still take care of to keep
    it wise. I cant wait to read much more from you.
    This is actually a tremendous web site.

  54. trading online on July 27th, 2019

    This is very attention-grabbing, You’re a very professional blogger.
    I have joined your feed and sit up for in the hunt for more of your wonderful post.
    Additionally, I’ve shared your website in my social networks

  55. Please let me know if you’re looking for a article writer for your
    site. You have some really good articles and I feel I would be a good
    asset. If you ever want to take some of the load off, I’d really like to write some material
    for your blog in exchange for a link back to mine.

    Please shoot me an email if interested. Thank you!

  56. Casey on August 20th, 2019

    of course like your web-site but you have to test
    the spelling on several of your posts. A number of them are rife
    with spelling problems and I find it very troublesome to inform the truth however I’ll definitely come again again.

  57. silahkan kunjungi web sumbernya on September 26th, 2019

    Good way of describing, and fastidious piece of writing to take facts on the
    topic of my presentation subject, which i am going to present in university.

  58. Colby on October 29th, 2019

    I know this site offers quality depending articles and additional stuff, is there any other site which offers
    such information in quality?

  59. Amazing! Its actually awesome piece of writing, I have got much clear idea concerning from this article.

  60. cách download youtube mp3 on November 20th, 2019

    I went over this internet site and I think you have a lot of excellent information, saved to fav (:

  61. Jaimie on November 23rd, 2019

    Yes! Finally something about furniture.

  62. baca di sini on December 5th, 2019

    I don’t even know the way I ended up right here, however
    I believed this publish used to be good. I don’t recognize who you’re however certainly you’re going
    to a well-known blogger if you are not already.

  63. qSFdIibRfh on December 6th, 2019


  64. cera per fusioni on December 13th, 2019

    Pretty portion of content. I simply stumbled upon your web site and in accession capital to assert that I get actually loved account
    your blog posts. Anyway I will be subscribing for your augment or even I fulfillment you get admission to constantly

  65. on January 5th, 2020

    It is not my first time to go to see this website, i am visiting this site dailly and obtain fastidious facts from here all the

  66. 그래프사이트 on February 12th, 2020

    Hi there everyone, it’s my first pay a quick visit at this website, and article is truly fruitful designed for me, keep up
    posting such articles.

  67. parc esta singapore launch on March 3rd, 2020

    In my experience they are rarely real stainless.

  68. casino bonus on March 31st, 2020

    certainly like your website however you need to check the
    spelling on several of your posts. A number of them are rife with spelling issues
    and I to find it very troublesome to inform the truth nevertheless I will certainly come back again.

  69. seo companies on May 17th, 2020

    I dugg some of you post as I cogitated they were
    very useful very helpful.

  70. ebay deutschland on June 11th, 2020

    Hi there it’s me, I am also visiting this website regularly, this site
    is actually fastidious and the viewers are in fact sharing
    nice thoughts.

  71. polecany artykul on June 26th, 2020

    Thanks , I’ve just been looking for information about this subject for a while
    and yours is the greatest I have found out till now.
    But, what about the conclusion? Are you certain in regards to the

  72. Situs Judi Qq on October 17th, 2020

    I feel that is among the most significant information for me.
    And i am happy reading your article. However should statement on some normal things, The site style is great, the articles is in reality nice : D.
    Good task, cheers

  73. Diamond Painting on November 5th, 2020

    This paragraph provides clear idea in support of the new viewers of
    blogging, that actually howw to do running a blog.

  74. Roberto on February 5th, 2021

    I don’t even know the way I finished up rikght here, but I
    assumed thuis submit was good. I do nott recognise who you’re but definitely you are going
    to a famous blogyger if you happen to are nnot alread ;) Cheers!

  75. rewrite my paper on February 19th, 2021

    I don’t know whether it’s just me or if everybody else experiencing problems with your website.

    It appears as though some of the text in your content are running off the screen. Can somebody else please
    comment and let me know if this is happening to them too?
    This could be a issue with my web browser because
    I’ve had this happen previously. Kudos

  76. Fairspin on February 26th, 2021

    First off I want to say fantastic blog! I had a quick question that I’d like to ask if you
    do not mind. I was interested to find out how
    you center yourself and clear your head prior to writing.
    I have had a difficult time clearing my mind in getting my ideas out.
    I truly do take pleasure in writing however it just seems like
    the first 10 to 15 minutes are usually lost simply just trying to figure out how to begin. Any recommendations or hints?

  77. เครดิตฟรี on March 8th, 2021

    This post provides clear idea in favor of the new viewers of blogging, that genuinely how to do blogging and site-building.

  78. click here on March 30th, 2021

    They’re uncomplicated to use and speedy to download, and function just as effectively as their browser-based counterparts.

  79. here on April 1st, 2021

    States do not enforce these social betting laws unless there’s some other
    criminal act involved.

  80. I have fun with, cause I discovered exactly what I was looking for.

    You have ended my 4 day lengthy hunt! God Bless you man. Have a nice day.

  81. more info on May 17th, 2021

    Attainable returns are universal with the large 3 normal
    odds formats.

  82. here on May 18th, 2021 is your #1 supply of truthful, straightforward and precise sportsbetting facts.

Leave a Reply