Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

When Less is More

664 views

Published on

Learn the key differences between v4 and v5 in my "When Less is More" presentation, given at Umbraco Codegarden 12.

For those who learned version 5, this presentation shows you what you need to know about version 4. By the end I think you'll agree that Umbraco 4 is a great product that meets real-world needs.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

When Less is More

  1. 1. 1
  2. 2. I’ve taught Umbraco for years (v2, 3, 4, and 5)I love XSLT. I also enjoy Razor. 2
  3. 3. Have you used Umbraco 5? Umbraco 4? 3
  4. 4. Let’s get the preliminaries out of the way with a quick bit of history… 4
  5. 5. 5
  6. 6. 6
  7. 7. Umbraco is the Danish word for an allen key or a hex key…you know, like you get with IKEA furniture…the thing that brings everything together to fit perfectlyThats the original umbraco logo in the corner, by the way. 7
  8. 8. It’s just as well it’s a type because “unbrako” is a registered trademark And now when you search for ‘umbraco’ you get results all about the cms  8
  9. 9. Difference?Umbraco is not a SYSTEM you adapt to, Umbraco Is a Framework you form into something you can work with and fityour needs.Lotus Elise versus SUV on cruisecontrol
  10. 10. 2-fold goal of umbraco sites – fun to build, easy to live with. These are NOT incompatible goals
  11. 11. Umbraco isn’t for every situation.Though you can use Umbraco for almost anything, be aware of what it’s best at to get the most from it.
  12. 12. These are the big 3 building blocks of Umbraco.Today we’ll handle these in order, starting with document types 13
  13. 13. 15
  14. 14. In my opinion, this is the situation between v4.7 and v5.1All these slides are my opinion.These things are better in v5, IMO.But these are also easily corrected in v4 and there are packages to help even today. 16
  15. 15. 17
  16. 16. This isn’t better or worse, simply different. 18
  17. 17. 19
  18. 18. 20
  19. 19. 21
  20. 20. It’s true, Razor is even better in v4 than in v5!And, you can use XSLT if you want to.
  21. 21. The differences between v4 (Master pages) and v5 (views) is mostly about the syntax. The ideas are extremelysimilar.
  22. 22. Just like with id’s on <div>’s in your html that your CSS will target,So the content will target the placeholder by it’s id.Nested or master/child templates.Eliminate redundancy… make site-wide changes quickly 28
  23. 23. Toolbar buttons make it easy. 29
  24. 24. 30
  25. 25. Multiple place holders with default content (saves work later)
  26. 26. Better in v4 32
  27. 27. 34
  28. 28. New in Umbraco 4.7, you can use Razor macros;… and can simply point to the file rather than making a macro in umbraco.… Easier source code control and reusability across projects that way.Lee Kelleher is working on a similar capability for XSLT 35
  29. 29. There’s a syntax difference in v4… you use @Model. In v5 you used either @CurrentPage or @DynamicModel.Otherwise it’s the same. 37
  30. 30. 38
  31. 31. Could also have @Model.Children.Where(“!umbracoNaviHide”) 39
  32. 32. 40
  33. 33. Be sure to check for a property’s existence in v4 41
  34. 34. 42
  35. 35. Translators aren’t in v5. It’s a very strong feature of v4.And there are two excellent helps to make living with multi-lingual sites even easier because editing is easier thancreating (remember to always check the validity of a machine translation before publishing of course) 44
  36. 36. Name change – they’re just called Macros in v4
  37. 37. Same capabilities
  38. 38. Syntax change in the markup, but same functionality.V4 shown above, equivalent v5 shown below 47
  39. 39. Only available in v4.Use the cool “square bracket syntax” for macro parameters to automatically select values based on a page’s content,a visitors cookie, or from a form value 48
  40. 40. 49
  41. 41. Add the ?umbDebugShowTrace=true querystring parameter to your url to see a full performance trace output 50
  42. 42. While we’re talking about performance… Here’s a real-world exampleDuring the site and tour launch there were 138 visitors every second.Even under that load the large homepage rendered in 0.016 seconds (16 thousandths of a second!)BTW, Umbraco is ready for load balancing (and Azure)! 51
  43. 43. Macro caching is free speed!A slow umbraco macro might take 5 hundredths of a second.(fix the speed problem if you can)With caching it takes just 1 ten-thousandths of a second! 52
  44. 44. Just specify how long a macro’s output should be cached before it is run again. 53
  45. 45. 54
  46. 46. These don’t (yet?) exist in v4 or aren’t as strong.Get involved and make it happen! 55
  47. 47. Personally, I don’t like Canvas (aka ‘live’) editing and always disable it for users. But at least it’s possible in v4. 56
  48. 48. All you need to do is set the publish and/or unpublish date and time and Umbraco will dutifully take care ofeverything.This is not available in v5. 57
  49. 49. Yes, I really like XSLT. I also like Razor. It’s great having the choice to use the best/preferred tool for the job. 58
  50. 50. There are over 500 packages for v4! 59
  51. 51. 60
  52. 52. 61
  53. 53. 62
  54. 54. (make your own and share!) 63
  55. 55. 64
  56. 56. 65
  57. 57. 66
  58. 58. Reserved urls and paths let you put your pages and applications in an umbraco site and tells umbraco to leave themalone.Turn off debug mode when going live – it also disables the output trace from ?umbDebugShowTrace=true 67
  59. 59. Specify (culture-specific) 404 pages for your siteBuilt-in task schedularRedirect users to your own customized help pages when they click the help icon in the back office 68
  60. 60. 69
  61. 61. 70
  62. 62. Not in v5 71
  63. 63. 72
  64. 64. Not only can you make your own custom dashboard controls (really easy to do!)… but you can show/hide it based on who is logged in to Umbraco 73
  65. 65. 74
  66. 66. 75
  67. 67. 76
  68. 68. 77
  69. 69. These aren’t just big names, they demonstrate that you can build whatever you want with Umbraco.No limits. 78
  70. 70. 79
  71. 71. 80
  72. 72. Dont feel this way… for long, anyway. 81
  73. 73. Become a karmanator yourself! 82
  74. 74. Become part of the Umbraco Community!People WANT to help you!They have been in exactly the same situation and know what youre going through. 83
  75. 75. There are more all over the world. Get local.If there isn’t one nearby, start one yourself  84
  76. 76. 85

×