public ContentNodeSitecoreItem(ITreeNodeContent node, ID id, ITemplateFieldValueProvider fieldValueProvider)
        {
            Node = node;
            FieldValueProvider = fieldValueProvider;
            Id = id;

            var templateId = FieldValueProvider.GetTemplateId(node);

            SetItemDefinition(Id, node.Name, templateId, ID.Null);
            ((ICacheable)ItemDefinition).Cacheable = SitecoreConstants.EnableCacheable;
        }
예제 #2
0
 public CatalogSitecoreItem(ITreeNodeContent node, ID id, ITemplateFieldValueProvider fieldValueProvider) : base(node, id, fieldValueProvider)
 {
 }
 public ContentNodeSitecoreItem(ITreeNodeContent node, ID id, ID parentId, ITemplateFieldValueProvider fieldValueProvider) : this(node, id, fieldValueProvider)
 {
     ParentId = parentId;
 }