MagicCMS Documentation

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

Gets a collection of MagicPost filtered by type and tags.

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

Syntax


public static MagicPostCollection GetByType(
	int[] types,
	string[] keywords,
	string order,
	bool inclusive,
	int max
)

Parameters

types
Type: array<Int32>[]()[][]
The types array.
keywords
Type: array<String>[]()[][]
Array of tags.
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.

Return Value

Fetched post collection (MagicPostCollection)

Remarks


This method is useful to make a rapid query by tags filtered optionally by poster type.