Click or drag to resize
DocumentHelperEnsureBlogPostHierarchy Method
Ensures that the parent document of the blog post is blog month.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 12.0.0
Syntax
C#
public static TreeNode EnsureBlogPostHierarchy(
	TreeNode node,
	TreeNode parent,
	TreeProvider tree
)

Parameters

node
Type: CMS.DocumentEngineTreeNode
Blog post document
parent
Type: CMS.DocumentEngineTreeNode
Current parent document
tree
Type: CMS.DocumentEngineTreeProvider
TreeProvider to use

Return Value

Type: TreeNode
New parent (blog month document if CMS.BlogMonth document type exists)
See Also