ContentService.GetChildren Method

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

Overloads

GetChildren(int, bool, bool) Get child items of the specified content item.
GetChildren(int, bool, bool) Get child items of the specified content item.

GetChildren(int, bool, bool)

Get child items of the specified content item.

public static IEnumerable<Content> GetChildren(int id, bool sudo = false, bool trashed = false)

Parameters

id
int

Id of the content item for which to get children.

sudo
bool

true to perform action as super user, otherwise false.

trashed
bool

true to return trashed items, otherwise false.

Returns

System.Collections.Generic.IEnumerable

Returns a list of Content objects.

GetChildren(int, bool, bool)

Get child items of the specified content item.

public static IEnumerable<T> GetChildren<T>(int id, bool sudo = false, bool trashed = false)
    where T : Content

Parameters

id
int

Id of the content item for which to get children.

sudo
bool

true to perform action as super user, otherwise false.

trashed
bool

true to return trashed items, otherwise false.

Returns

System.Collections.Generic.IEnumerable<>

Returns a list of content items of type T.