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
<?xml version="1.0"?> | |
<log4net> | |
<root> | |
<priority value="Info" /> | |
<appender-ref ref="AsynchronousLog4NetAppender" /> | |
<appender-ref ref="SmtpAppender"/> | |
</root> | |
<!--To Change the way logging works for certain namespaces, insert a new logger like: --> | |
<!-- | |
<logger name="Umbraco.Core"> |
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
@{ | |
if (feature.HasValue("Image")) | |
{ | |
var featureImage = Umbraco.TypedMedia((int)feature.Image); | |
var myCropUrl = featureImage.GetCropUrl("PageBannerCrop") ?? featureImage.GetCropUrl(200, 100); | |
<a href="@feature.Url" class="image image-full"><img src="@myCropUrl" alt="" /></a> | |
} | |
} |
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
syntax: regexp | |
^packages/(?!repositories.config).* | |
# use glob syntax | |
syntax: glob | |
# Umbraco | |
wwwRoot/App_Data/umbraco.config | |
wwwRoot/App_Data/preview/*.config | |
wwwRoot/App_Data/TEMP/ClientDependency/ |
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
window.slimmage = {verbose:true, jpegQuality:90, jpegRetinaQuality :80}; |
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 Umbraco.Web.Models | |
@inherits UmbracoViewPage<IPublishedContent> | |
@{ | |
var internalMediaFolder = Umbraco.TypedMediaAtRoot().FirstOrDefault(x => x.DocumentTypeAlias == "InternalMediaFolder"); | |
if (internalMediaFolder != null) | |
{ | |
var appleTouchIcon = internalMediaFolder.Descendants().FirstOrDefault(x => x.DocumentTypeAlias == "AppleTouchIcon"); |
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
<location path="umbraco"> | |
<system.webServer> | |
<urlCompression doStaticCompression="false" doDynamicCompression="false" dynamicCompressionBeforeCache="false" /> | |
</system.webServer> | |
</location> | |
<location path="App_Plugins"> | |
<system.webServer> | |
<urlCompression doStaticCompression="false" doDynamicCompression="false" dynamicCompressionBeforeCache="false" /> | |
</system.webServer> | |
</location> |
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
.archetypeEditor div.archetypeProperty { | |
float: left; | |
clear: none; | |
margin-left: 20px; | |
} | |
.archetypeEditor div.archetypeProperty:first-child { | |
margin-left: 0; | |
} |
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
namespace Crumpled.Logic.ValueConverters | |
{ | |
using System.Linq; | |
using System.Web; | |
using HtmlAgilityPack; | |
using Umbraco.Core.Models.PublishedContent; | |
using Umbraco.Core.PropertyEditors; | |
using Umbraco.Core.PropertyEditors.ValueConverters; |
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
public bool IsConverter(PublishedPropertyType propertyType) | |
{ | |
return propertyType.DataTypeId == 1234; | |
} |
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
namespace MyStuff.App_Code | |
{ | |
using Umbraco.Core.Models; | |
using Umbraco.Web; | |
public static class MyHelpers | |
{ | |
public static string MyGetCropUrl(this IPublishedContent publishedContent, int width, int height) | |
{ | |
var bgColor = "fff"; |
OlderNewer