MagicCMS Documentation

MagicPost..::..GetChildrenByType Method (array<Int32>[]()[][], String, Boolean, Int32, Boolean, MagicSearchActive, Boolean)

Gets the children of the post filtered by post type (Tipo).

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

Syntax


public MagicPostCollection GetChildrenByType(
	int[] types,
	string order,
	bool inclusive,
	int max,
	bool escludiScaduti,
	MagicSearchActive active,
	bool onlyIfTranslated
)

Parameters

types
Type: array<Int32>[]()[][]
The types array.
order
Type: String
Order in which the posts are sorted.
inclusive
Type: Boolean
if set to true include filtered otherwise exclude.
max
Type: Int32
Maximum number of posts returned.
escludiScaduti
Type: Boolean
If true filter post expired (expiration date prior to today).
active
Type: MagicCMS.Core..::..MagicSearchActive
Filter post on [MacigPost.Active] flag.
onlyIfTranslated
Type: Boolean
It returns only the records for which there is a translation.

Return Value

Fetched post collection