MagicCMS Documentation

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

Get a collection of MagicPost by keyword.

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

Syntax


public static MagicPostCollection SearchByKeyword(
	string[] keywords,
	string order,
	int max,
	bool onlyIfTranslated,
	WhereClauseCollection query
)

Parameters

keywords
Type: array<String>[]()[][]
Tags array.
order
Type: String
Output order.
max
Type: Int32
Max number of post returned.
onlyIfTranslated
Type: Boolean
If current language is not default language and is true posts are returned only if a translated version is present, otherwise default language version is returned.
query
Type: MagicCMS.Core..::..WhereClauseCollection
WhereClauseCollection object.

Return Value

Post Collection