Halloween 2014 Pumpkins
Embedded Twitter Feed

Embedded Twitter Feed for Umbraco

Basic embedded twitter feed macro for usage on your Umbraco website. There is a 7.x version and a 4.11.x version available.

Takes parameters to embed a twitter timeline including the ability to:

  • Change height and width
  • Link Color
  • Data-Chrome settings (header, footer, scrollbar)
  • Number of Tweets to show

Embedded Twitter Feed CSHTML

@* Embedded Twitter Feed
 * ---------------------
 * Create a widget from Twitter.com FIRST - https://twitter.com/settings/widgets
 * Embedded Timeline API - https://dev.twitter.com/docs/embedded-timelines
 * All of these settings are for the local end. User & Search information
 * Should be setup on the actually widget creation page.

    string widgetID = Parameter.widgetID;
    string width = Parameter.width;
    string height = Parameter.height;
    string linkColor = Parameter.linkColor;
    string numTweets = (Parameter.numTweets != "") ? Parameter.numTweets : "";
    var chrome = "";

@* Boolean values store as string 1 and 0 *@
    if ( Parameter.header == "1" ) {
        chrome += "noheader ";
    } if ( Parameter.footer == "1" ) {
        chrome += "nofooter ";
    } if ( Parameter.scrollbar == "1" ) {
        chrome += "noscrollbar ";

<a class="twitter-timeline" 
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>

Continue reading

Umbraco Package: Form Wrangler

Form Wrangler is a package for Umbraco that assembles a list of files, with links, from a selected media library folder ID. This package was initially designed for the Rose-Hulman Institute of Technology Website and released to the Our Umbraco community on 22 November 2013.

Form Wrangler Parameters:

  • Name: Media Folder
  • Alias: mediaFolder
  • Type: mediaCurrent

Form Wrangler CSHTML

@inherits umbraco.MacroEngines.DynamicNodeContext
    if ( String.IsNullOrEmpty(@Parameter.mediaFolder) ) {
        &ltp>A folder has not been selected</p>
    var folder = Parameter.mediaFolder; 
    var media = Model.MediaById(folder); 

    @helper traverse(dynamic node) { 
        var cc = node.Children; 
        if ( cc.Count()>0 && node.NodeTypeAlias == "Folder" ) {
            <ul>@foreach (var c in cc) {
        <li@structure(c) @traverse(c)</li>

    @helper structure( dynamic node ){ 
        if ( node.NodeTypeAlias == "Folder" ) { 
            <span id="@node.Name.ToLower().Replace(" ", "_")" class="folder">@node.Name</span> 
        } else { 
            <a href="@node.Url" target="_blank">@node.Name</a> 
    <div class="formWrangler">@traverse(media)</div>

Form Wrangler in Action

Form Wrangler
Disclaimer: Form Wrangler was designed “as-is”. Greg McMullen does not provide any warranty of the item whatsoever, whether express, implied or statutory, including, but not limited to, any warranty of merchantability or fitness for a particular purpose or any warranty that the contents of the item will be error-free.

Coach Greg McMullen

A Farewell Letter

As many of you know, my time at Rose-Hulman was always limited. Sarah and I knew that match day would come and we would inevitably be told where we were going to live, not by our hearts, but by a computer system.

On Friday, March 21 we opened a letter, read the words and to saw we will be starting a new life in Northern Kentucky.

When I started coaching, I never envisioned leaving a program would be as hard as it is today. I’ve had the opportunity to coach a variety of swimmers ranging from 6-22. From people just happy to learn the strokes, to (now) NCAA All-Americans. Believe me when I say it’s just as hard to leave this team as it was a 6-year-old that held on to my leg at a swim meet.

I want to thank you for your patience and understanding in year one as I was trying to find my voice and for your attention as we all “adjusted” in year two.

I wish you all nothing but the best and hope to see as many as I can before I leave. Currently, there is no timeline when I will leave.

If anyone wants to stay in contact you can always find me on twitter.

Thank you and best of luck in everything you do.

Edit: As of May 30, 2014 I will no longer be working for Rose-Hulman.