Click or drag to resize

NewsItemGetNewsListFromCategory Method (String, NewsStatus, SortFields, SortDirection, String, Int32, Int32, Boolean)

Gets the list of news by specified parameters.

Namespace:  Dynamicweb.News
Assembly:  Dynamicweb.News (in Dynamicweb.News.dll) Version: 1.0.10
Syntax
public static NewsItemCollection GetNewsListFromCategory(
	string categoryIds,
	NewsStatus status,
	SortFields sort,
	SortDirection direction,
	string search,
	int startItem,
	int endItem,
	bool bAdmin
)

Parameters

categoryIds
Type: SystemString
The list of news category ids.
status
Type: Dynamicweb.NewsNewsStatus
The status of news.
sort
Type: Dynamicweb.NewsSortFields
The sorting field.
direction
Type: Dynamicweb.Modules.CommonSortDirection
The sorting direction.
search
Type: SystemString
The searching filter.
startItem
Type: SystemInt32
The start item.
endItem
Type: SystemInt32
The end item.
bAdmin
Type: SystemBoolean
if set to true gets all news, otherwise gets only active news.

Return Value

Type: NewsItemCollection
See Also