Send mail to the author(s) E-mail

View Richard Soeteman's profile on LinkedIn

RSS 2.0 | Atom 1.0 | CDF




The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Sign In


# Friday, February 6, 2009
Friday, February 6, 2009 4:24:22 PM (GMT Standard Time, UTC+00:00) ( )

This Blog is not active anymore, further posts will be available on my company website. Read new posts here

Recently I started working with  Design Revolution as a partner on Umbraco projects. Together we released a few sites and all these sites contained a section where a user can pick dynamic elements such as overviews, map locations etc. To achieve this we've  created a few macro's that contained functionality to display the correct information. For each section where the user can select a macro we've  created a tab(overview1/overview2 etc) with a Rich Text Editor to selected the macro. We came to the conclusion that this isn't the best solution because we want to force site integrity and we came up with the idea to create a datatype where a user can select a macro and fill in the macro properties as normal Umbraco data fields. 

How it works

In the video below I will demonstrate how the datatype works. I've installed a clean Umbraco installation with Runway and the following Runway modules installed

  • Runway FAQ Module
  • Runway JCarousel
  • Standard Top Navigation

I did modify the macro's a bit so that they accepted a content picker macro parameter so we can list the selected folder instead of the current folder. When you want to use the package it's good to know that you can use the normal syntax for a page item, all options that you can choose on a normal Text datatype will also work on the Macro Picker datatype.

<umbraco:Item field="[YourfieldNameHere]" runat="server"></umbraco:Item>
Comments [4] | | # 
Saturday, February 7, 2009 1:52:40 AM (GMT Standard Time, UTC+00:00)
Awesome work. It is funny that I was just talking to a client about nearly the same thing. We were talking about adding multiple Macro Widgets. Simply! Awesome work.
Sunday, February 8, 2009 8:42:56 AM (GMT Standard Time, UTC+00:00)
Thanks Casey, just read a tweet from Niels that a Multiple Macro picker will be included in 4.1
Friday, February 27, 2009 9:26:39 AM (GMT Standard Time, UTC+00:00)
Your blog is a gold mine Richard :) hartelijk dank
Friday, February 27, 2009 9:42:48 AM (GMT Standard Time, UTC+00:00)
Hi Matt Thanks, comments like these make my day :)
Comments are closed.