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> | |
<h2> | |
<sc:Text runat="server" Field="Title"/> | |
</h2> | |
<sc:Text runat="server" Field="Text"></sc:Text> | |
</div> |
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
<head> | |
<meta charset="utf-8" /> | |
<title>@Page.Title - My ASP.NET Web Page</title> | |
<link href="~/Content/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css" /> | |
<link href="~/Content/Site.css" rel="stylesheet" type="text/css" /> | |
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" /> | |
<script src="~/Scripts/jquery-1.10.2.min.js"></script> | |
<script src="~/Scripts/jquery-ui-1.10.3.js"></script> | |
<script src="~/Scripts/modernizr-2.6.2.js"></script> | |
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 class TriggerOutcomeRuleAction<T> : RuleAction<T> where T : Sitecore.Rules.RuleContext | |
{ | |
public override void Apply(T ruleContext) | |
{ | |
RegisterOutcome(); | |
} | |
public void RegisterOutcome() | |
{ | |
ID id = ID.NewID; |
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
Item thisItem = Sitecore.Context.Data.Database.GetItem(ContactAcquisitionOutcome); | |
Sitecore.Analytics.Data.Items.OutcomeDefinitionItem outcomeItem = new OutcomeDefinitionItem(thisItem); | |
PageEventItem pageEventItem = new PageEventItem(outcomeItem); | |
PageEventData pageEventData = Sitecore.Analytics.Tracker.Current.CurrentPage.Register(pageEventItem); |
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 class LoopbackAuthorisationFilter : System.Web.Http.Filters.AuthorizationFilterAttribute | |
{ | |
public override void OnAuthorization(HttpActionContext actionContext) | |
{ | |
// Play nicely with the base class :) | |
base.OnAuthorization(actionContext); | |
// If the request does not originate from this machine | |
if (!System.Web.HttpContext.Current.Request.IsLocal) | |
{ |