MagicCMS Documentation

MagicPost..::..GetSiblings Method (String, Int32)

Gets the siblings posts (same parent) of current post.

Namespace:  MagicCMS.Core
Assembly:  MagicCMS.4.5 (in MagicCMS.4.5.dll)

Syntax


public MagicPostCollection GetSiblings(
	string order,
	int type
)

Parameters

order
Type: String
Order in which the posts are sorted.
type
Type: Int32
Filter siblings for parent post type

Return Value

The Sibling (MagicPostCollection)