Enables scripted content fragments to use Favorites

Methods

Delete

Deletes a favorite

Usage

#set($additionalInfoResponse = $core_v2_favorite.Delete($uri, $favoriteType))

Parameters

NameTypeDescriptionRequiredDefaultOptions
uristringURL of favorited item to deleteRequired
favoriteTypestringType of favoriteRequired

Return Type

AdditionalInfo

List

Lists favorited items for a user

Usage

#set($pagedListResponse = $core_v2_favorite.List($userId, "%{Application = $applicationArg, FavoriteTypes = $favoriteTypesArg, PageIndex = $pageIndexArg, PageSize = $pageSizeArg, SortBy = $sortByArg}"))

Parameters

NameTypeDescriptionRequiredDefaultOptions
userIdintId of userRequired
ApplicationstringUsed to filter to specific applicationsOptionalUnknownCalendar, Forum, MediaGallery, Unknown, Weblog, Wiki
FavoriteTypesstringComma delimited string that contains the favorite types to filter byOptionalForum, Group, MediaGallery, Weblog, Wiki
PageIndexintSpecify the page number of paged results to return. Zero-based index.Optional0
PageSizeintSpecify the number of results to return per page. Optional20
SortBystringSort ByOptionalTitleApplication, Title

Return Type

PagedList<Favorite>