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 ActionResult ContactUs() | |
{ | |
var model = new ContactUsViewModel(); | |
if ((Tracker.Current != null) && (Tracker.Current.Contact != null)) | |
{ | |
var contact = Tracker.Current.Contact; | |
var personal = contact.GetFacet<IContactPersonalInfo>("Personal"); | |
var phoneFacet = contact.GetFacet<IContactPhoneNumbers>("Phone Numbers"); | |
var addressFacet = contact.GetFacet<IContactAddresses>("Addresses"); |
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
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<pipelines> | |
<mvc.requestBegin> | |
<processor type="YourNamespace.Pipelines.MvcRequestBegin, YourNamespace" | |
patch:after="processor[@type='Sitecore.Mvc.Analytics.Pipelines.MvcEvents.RequestBegin.StartTracking, Sitecore.Mvc.Analytics']"/> | |
</mvc.requestBegin> | |
</pipelines> | |
</sitecore> | |
</configuration> |
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; | |
using System.Linq; | |
using Sitecore.Analytics; | |
using Sitecore.Analytics.Tracking; | |
using Sitecore.Diagnostics; | |
using Sitecore.Mvc.Pipelines.Request.RequestBegin; | |
using Sitecore.Analytics.Model.Entities; | |
using Sitecore.Analytics.Model.Framework; | |
namespace YourNamespace.Pipelines.MvcRequestBegin |
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"?> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/" xmlns:search="http://www.sitecore.net/xmlconfig/search/"> | |
<sitecore role:require="ContentDelivery" search:require="lucene"> | |
<contentSearch> | |
<configuration type="Sitecore.ContentSearch.ContentSearchConfiguration, Sitecore.ContentSearch"> | |
<!--Index Configuration--> | |
</configuration> | |
</contentSearch> | |
</sitecore> | |
</configuration> |
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"?> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/" xmlns:search="http://www.sitecore.net/xmlconfig/search/"> | |
<sitecore role:require="Standalone or Reporting or ContentManagement or Processing" search:require="lucene"> | |
<contentSearch> | |
<configuration type="Sitecore.ContentSearch.ContentSearchConfiguration, Sitecore.ContentSearch"> | |
<!--Index Configuration--> | |
</configuration> | |
</contentSearch> | |
</sitecore> | |
</configuration> |
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
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/" xmlns:role="http://www.sitecore.net/xmlconfig/role/" xmlns:env="http://www.sitecore.net/xmlconfig/env/"> | |
<sitecore> | |
<sites> | |
<!--Local--> | |
<site name="[ProjectName]" inherits="website" | |
rootPath="/sitecore/content/ProjectName" | |
hostName="*" | |
targetHostName="ProjectName.local.com" | |
patch:before="site[@name='website']" /> | |
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"?> | |
<configuration | |
xmlns:patch="http://www.sitecore.net/xmlconfig/" | |
xmlns:set="http://www.sitecore.net/xmlconfig/set/" | |
xmlns:role="http://www.sitecore.net/xmlconfig/role/" | |
xmlns:env="http://www.sitecore.net/xmlconfig/env/"> | |
<sitecore> | |
<settings> | |
<!--Local--> | |
<setting name="[ProjectName].Setting" value="abc123" env:require="Local" /> |
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
<appSettings> | |
<!--Local--> | |
<add key="env:define" value="Local" /> | |
<add key="role:define" value="Standalone"/> | |
<!--Develop--> | |
<add key="env:define" value="Develop" /> | |
<add key="role:define" value="Standalone"/> | |
<!--Beta--> |
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 Elision.Foundation.Kernel; | |
using Sitecore.Data.Fields; | |
using Sitecore.Data.Templates; | |
namespace Elision.Foundation.FieldVisibility.Pipelines.GetContentEditorFields | |
{ | |
public class GetFields : Sitecore.Shell.Applications.ContentEditor.Pipelines.GetContentEditorFields.GetFields | |
{ | |
protected override bool CanShowField(Field field, TemplateField templateField) | |
{ |
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
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/"> | |
<sitecore> | |
<pipelines> | |
<getContentEditorFields> | |
<processor type="[YOUR_NAMESPACE].GetFields, [YOUR_NAMESPACE]" | |
patch:instead="processor[@type='Sitecore.Shell.Applications.ContentEditor.Pipelines.GetContentEditorFields.GetFields, Sitecore.Client']" /> | |
</getContentEditorFields> | |
</pipelines> |
NewerOlder