This file contains hidden or 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 string ReadFallbackValue(Field field, Item item) | |
{ | |
var fallbackItem = item.GetFallbackItem( MasterLanguage); | |
// makes 3 step renderings, currentitem -> fallback -> standard value | |
if (!TemplateManager.IsTemplate(item) && field.ID == Sitecore.FieldIDs.LayoutField && fallbackItem != null && fallbackItem.Versions.Count > 0 ) | |
{ | |
Field field1 = fallbackItem.Fields[field.ID]; | |
if (!field1.ContainsStandardValue) | |
{ |
This file contains hidden or 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 EnsureLanguageWriteAccess | |
{ | |
public int Limit | |
{ | |
get; | |
set; | |
} | |
public void Process(Sitecore.Pipelines.Save.SaveArgs args) | |
{ |
NewerOlder