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 void SavePostMessage(string network, string NewtworkPagename, string postid, string pageid, ....) | |
{ | |
try | |
{ | |
using (SecurityDisabler securityDisabler = new SecurityDisabler()) | |
{ | |
Database database = Factory.GetDatabase("master"); | |
Item item = database.GetItem("/sitecore/system/Social/PostMessage"); | |
TemplateItem template = database.GetTemplate(SocialTemplates.SocialMessages.ID); |
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 void PostFacebook(string ApplicationFacebookItemId) | |
{ | |
try | |
{ | |
this.ClearController(); // new line of code, clears all controller. | |
Database database = Factory.GetDatabase("master"); | |
... |
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 void BindGrid() | |
{ | |
try | |
{ | |
if (Request.QueryString["id"] != null) | |
{ | |
var websitepageid = Request.QueryString["id"]; | |
var messageFolder = Sitecore.Configuration.Factory.GetDatabase("master").GetItem("/sitecore/system/Social/PostMessage"); |
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> | |
<unicorn> | |
<defaults> | |
<fieldFilter type="Rainbow.Filtering.ConfigurationFieldFilter, Rainbow" singleInstance="true"> | |
<exclude fieldID="{34FECB70-C890-4671-A28B-37E65572DCB3}" note="'__Published' field on Statistics Section" /> | |
<exclude fieldID="{DD4A2857-3EE1-44C1-94CD-121218B02852}" note="'__Published by' field on Statistics Section" /> | |
</fieldFilter> | |
</defaults> | |
<configurations> |
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 Sitecore; | |
using Sitecore.Data; | |
using Sitecore.Data.Items; | |
using Sitecore.Diagnostics; | |
using Sitecore.Globalization; | |
using Sitecore.Publishing.Pipelines.PublishItem; | |
using Sitecore.SecurityModel; | |
using Version = Sitecore.Data.Version; |
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/"> | |
<sitecore> | |
<pipelines> | |
<publishItem> | |
<processor type="CustomerName.Web.Core.Pipelines.CustomerNameUpdatePublishingStatistics, CustomerName.Web.Core" | |
patch:after="processor[@type='Sitecore.Publishing.Pipelines.PublishItem.UpdateStatistics, Sitecore.Kernel']" /> | |
</publishItem> | |
</pipelines> | |
</sitecore> |
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 for parent.hbs | |
public class ParentComponentModel { | |
public string Text { get; set; } | |
public string Modifier { get; set; } = "parent-default"; | |
public SubcomponentModel Subcomponent { get; set; } | |
} | |
// Model for subcomponent.hbs | |
public class SubcomponentModel { | |
public string Content { get; set; } |
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 class="molecule-parent"> | |
<p>Parent</p> | |
<div class="atom-subcomponent subcomponent-default"> | |
<div>Subcomponent</div> | |
</div> | |
</div> |
OlderNewer