Click or drag to resize
DocumentHelperEnsureBlogPostHierarchy Method (TreeNode, Int32, TreeProvider)

Note: This API is now obsolete.

Ensures that the parent document of the blog post is blog month.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.2.23
Syntax
C#
[ObsoleteAttribute("This method is obsolete. Use overload method to pass parent document instance instead of the ID.")]
public static int EnsureBlogPostHierarchy(
	TreeNode node,
	int parentNodeId,
	TreeProvider tree
)

Parameters

node
Type: CMS.DocumentEngineTreeNode
Blog post document
parentNodeId
Type: SystemInt32
Node ID of the current parent node
tree
Type: CMS.DocumentEngineTreeProvider
TreeProvider to use

Return Value

Type: Int32
ID of the new parent (blog month document if CMS.BlogMonth document type exists)
See Also