Skrift headquarters resides in Bellingham, WA, at whatever restaurant or coffee house of choice suits Erica, Janae, and Kyle for their weekly meetings. At it's core, the magazine was contrived to bring the global Umbraco community together and find a localized place to promote uWestFest and other festivals around the world. Having worked together for seven years, each member of the team brings their own unique skills to Skrift's management. As a freelance UX designer, Erica is in charge of design, user testing, and statistics, Janae specializes in the C#, HTML, and CSS of the site as their resident code junkie, and Kyle puts his skills to use both as their Javascript guru and Editor In Chief (he's an award winning journalist and cartoonist, you know!*). Passionate about the web and Umbraco with skills developed working together in an agency bef
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@model GridControl | |
@using Grid.Web | |
@using Skybrud.Umbraco.GridData | |
@try | |
{ | |
<text>@Html.Partial(Model.EditorView(), Model)</text> | |
} | |
catch (Exception ex) { | |
<pre>@ex.ToString()</pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Helpers = { | |
/** | |
* @function formatMoney | |
* @param {number} n - The number to be formatted | |
* @param {string} d - The character to be used for the decimal. Defaults to ".". | |
* @param {string} t - the character to be used for the thousands separator. Defaults to ",". | |
* @param {int} c - the number of decimal places. Defaults to 2. | |
* @returns {string} | |
* @description Formats a number to a price | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using(Html.BeginUmbracoForm<ExampleSurfaceController>("SubmitForm", FormMethod.Post)) | |
{ | |
@Html.CheckBoxListFor(x => x.CheckboxListField, Model.CheckboxListSelectItems) | |
<button type="submit">Submit</button> | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web.Mvc; | |
using Our.Umbraco.Ditto; | |
using Offroadcode.Web.Models.Widgets; | |
using Skybrud.Umbraco.GridData; | |
using Skybrud.Umbraco.GridData.Values; | |
using Umbraco.Core.Models; | |
using Umbraco.Web; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@inherits UmbracoTemplatePage | |
@{ | |
// Set a variable to use the default content if no linked content has been selected | |
var content = Model.Content; | |
// Check to see if there's a linked page value | |
if(Model.Content.HasProperty("dtgeLinkedId") && Model.Content.HasValue("dtgeLinkedId")) | |
{ | |
// Run the linked page value through Umbraco.TypedContent() to get the IPublishedContent page | |
var dtgePage = Umbraco.TypedContent(Model.Content.GetPropertyValue("dtgeLinkedId")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@inherits UmbracoTemplatePage | |
@using ZoomAreaCropper.Models | |
@{ | |
Layout = null; | |
} | |
@if (Model.Content.HasValue("photo")) | |
{ | |
var photo = Model.Content.GetPropertyValue<ZoomAreaCropper>("photo"); | |
if (photo.HasMedia) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@model TextOverImage.Models.ImageWithText | |
@{ | |
// Use this code to render this partial in your template. Replace "banner" with whatever your property name is | |
// Make sure to include @using TextOverImage.Models at the top of your template | |
//@if(Model.Content.HasProperty("banner") && Model.Content.HasValue("banner")) | |
//{ | |
// @Html.Partial("TextOverImagePartial", Model.Content.GetPropertyValue<ImageWithText>("banner") | |
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@helper RenderFolders(string dirPath, bool displaySubDirs = false) | |
{ | |
try | |
{ | |
List<string> dirs = new List<string>(Directory.EnumerateDirectories(dirPath)); | |
<h4>@string.Format("Directory: {0}", dirPath.Substring(dirPath.LastIndexOf("\\") + 1))</h4> | |
<p>@(string.Format("{0} directories found.", dirs.Count))</p> | |
<ul> | |
@foreach (var dir in dirs) |