示例#1
0
        public BlogCreator(IContent content)
        {
            this.node        = content;
            this.releaseDate = ContentCreator.ReleaseDate(content);

            var parent = this.umbracoHelper.TypedContent(this.node.ParentId);

            this.holderTop = parent != null?parent.VHolderTop() : null;

            if (holderTop != null)
            {
                this.folderNameSetting = holderTop.GetPropertyValue <string>(VelstandProperty.AutoMakeHolderName);
            }
        }
示例#2
0
 /// <summary>
 /// 自動オペレーションを実行するメイン処理
 /// </summary>
 /// <param name="node"></param>
 public static void PublishingAutoOparations(IContent node)
 {
     node.SetValue(VelstandProperty.ReleaseDate, ContentCreator.ReleaseDate(node).ToString());
 }