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
<%@ Page Language="C#" %> | |
<%@ Import Namespace="System.Linq" %> | |
<script runat="server"> | |
protected override void OnLoad(EventArgs e) | |
{ | |
base.OnLoad(e); |
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 override Basket GetBasket(bool create) | |
{ | |
// Member is not logged on use default behavior | |
if (!Member.IsLoggedOn()) return base.GetBasket(create); | |
// Otherwise try and load a basket for the current member, create one if it doesn't exist | |
Basket basket = GetBasketForCurrentMember(); | |
if(basket == null) | |
{ |
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
<rule name="DenyRobots" stopProcessing="true" enabled="true"> | |
<match url="robots.txt" /> | |
<action type="Rewrite" url="/robots-deny.txt" /> | |
<conditions> | |
<add input="{HTTP_HOST}" pattern="^(www.)?content.company.com" /> | |
</conditions> | |
</rule> |
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 Auros.EPiSiteMap.Filters | |
{ | |
/// <summary> | |
/// Filters pages which do-not have public access | |
/// </summary> | |
[SiteMapFilter] | |
public class FilterPublicAccess : EPiServer.Filters.PageFilterBase | |
{ | |
public override bool ShouldFilter(EPiServer.Core.PageData page) | |
{ |
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
protected internal virtual IPageType CreateNewPageType(PageTypeDefinition definition) | |
{ | |
IPageType pageType = PageTypeRepository.CreateNew(); | |
PageTypeAttribute attribute = definition.Attribute; | |
string name = attribute.Name; | |
if (name == null) | |
{ |
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 override void ApplyEditChanges() | |
{ | |
if (_propertyControls == null) | |
return; | |
foreach (IPropertyControl propertyControl in _propertyControls) | |
{ | |
bool propertyStringControl = false; | |
try |
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 umbraco.MacroEngines.DynamicNodeContext | |
@using umbraco.MacroEngines; | |
@using System.Linq | |
@{ | |
// Get the hompage node | |
var homepage = @Model.AncestorOrSelf("Start"); | |
} |
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 static class ACMObjectHelpers | |
{ | |
/// <summary> | |
/// The logger for the class. | |
/// </summary> | |
private static ILog Logger = LogManager.GetLogger("IItemHelpers"); | |
/// <summary> | |
/// Fetches the alt text for the image from the specified path. | |
/// </summary> |
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
<div id="flvplayer_div"></div> | |
<script type="text/javascript"> | |
<!-- | |
var flashvars = {}; | |
//Video width | |
flashvars.stageW = 512; | |
//Video height | |
flashvars.stageH = 288; | |
//Show preview image? | |
flashvars.showPreviewImage = true; |
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
<caching> | |
<outputCache enableOutputCache="true" enableFragmentCache="true" sendCacheControlHeader="false" omitVaryStar="true"></outputCache> | |
<outputCacheSettings> | |
<outputCacheProfiles> | |
<add name="StaticPage" duration="86400" varyByParam="*" location="Any" /> | |
<add name="DynamicPage" duration="3600" varyByParam="*" location="Any" /> | |
<!-- A 1 minute cache for the landing pages, if we need it --> | |
<add name="LandingPage" duration="60" varyByParam="*" location="Any" /> | |
</outputCacheProfiles> | |
</outputCacheSettings> |
NewerOlder