Hey I would love to know what you think while reading my posts. Please comment!.

Contrib Youtube Orchard Field

I recently installed a new Orchard Field written by Andre Rodrigues.

Youtube Field - v0.91

Works like a charm, however breaks the layout of the page (Tested in Google Chrome and not bothered with others as this was broken).

The Field originally renders as

    <div class="youtube-field">
        <iframe 
            width="@Model.ContentField.Width" 
            height="@Model.ContentField.Height" 
            src="http://.../@Model.ContentField.Identifier?hd=1" 
            frameborder="0" 
            allowfullscreen />
    </div>

Which breaks the layout. So I updated it to:

    <div class="youtube-field">
        <iframe 
            width="@Model.ContentField.Width" 
            height="@Model.ContentField.Height" 
            src="http://.../@Model.ContentField.Identifier?hd=1" 
            frameborder="0"
            allowfullscreen="true"></iframe>
    </div>

Fixed!

I am always interested in hearing back from those who read my blog. Please leave a comment if you found this useful, want to suggest any changes to my code, or anything else! Thanks!

About Me

Tim James I'm Tim, a web applications developer from Glasgow, Scotland. Currently working for Kingfisher Systems Ltd, building bespoke systems within the Car Auction industry.

  • C#
  • VB.NET
  • ASP.NET
  • .NET MVC
  • Web API
  • Razor
  • HTML5
  • CSS3
  • jQuery
  • WCF
  • SQL
  • knockout.js
  • Angularjs
  • AJAX
  • APIs
  • SignalR
Why not follow me on twitter? Follow me on Twitter