Enables scripted content fragments to use WikiPages

Properties

NameTypeDescriptionDefaultOptions
ContentTypeIdGuidWiki pages content type identifier
CurrentWikiPageReturns the current contextual wiki page
CurrentOrDefaultWikiPageReturns the current or default wiki page
CurrentPageKeystringCurrent Page Key
CurrentParentWikiPageParent of current wiki page
DefaultWikiPageReturns the default wiki page for the current wiki context

Methods

AreRatingsEnabled

Returns whether ratings are enabled on a page

Usage

#set($booleanResponse = $core_v2_wikiPage.AreRatingsEnabled($id))

Parameters

NameTypeDescriptionRequiredDefaultOptions
idintWiki Page IdRequired

Return Type

bool

Create

Creates a Wiki Page

Usage

#set($wikiPageResponse = $core_v2_wikiPage.Create($wikiId, $title))

Parameters

NameTypeDescriptionRequiredDefaultOptions
wikiIdintWiki IdRequired
titlestringTitleRequired

Return Type

WikiPage

Create

Creates a Wiki Page

Usage

#set($wikiPageResponse = $core_v2_wikiPage.Create($wikiId, $title, "%{Body = $bodyArg, FeaturedImage = $featuredImageArg, ForumThreadId = $forumThreadIdArg, IsFeatured = $isFeaturedArg, IsLocked = $isLockedArg, IsPublished = $isPublishedArg, ParentPageId = $parentPageIdArg, Tags = $tagsArg, UserId = $userIdArg}"))

Parameters

NameTypeDescriptionRequiredDefaultOptions
wikiIdintWiki IdRequired
titlestringTitleRequired
BodystringBodyOptional
FeaturedImagestringUsed to include a featured image when IsFeatured is true.Optional
ForumThreadIdintRelated Forum ThreadOptional
IsFeaturedboolIs FeaturedOptionalFalse
IsLockedboolIs LockedOptionalFalse
IsPublishedboolIs PublishedOptionalTrue
ParentPageIdintParent Page IdOptional
TagsstringA comma separated list of tags.Optional
UserIdintUser IdOptional

Return Type

WikiPage

Get

Gets a Wiki Page

Usage

#set($wikiPageResponse = $core_v2_wikiPage.Get("%{ForumThreadId = $forumThreadIdArg, Id = $idArg, PageKey = $pageKeyArg, WikiId = $wikiIdArg}"))

Parameters

NameTypeDescriptionRequiredDefaultOptions
ForumThreadIdintRelated Forum ThreadOptional
IdintEither Id or WikiId and PageKey should be specified.Optional
PageKeystringEither Id or WikiId and PageKey should be specified.Optional
WikiIdintWiki IdOptional

Return Type

WikiPage

Get

Gets a Wiki Page

Usage

#set($wikiPageResponse = $core_v2_wikiPage.Get($contentId))

Parameters

NameTypeDescriptionRequiredDefaultOptions
contentIdGuidContent IdRequired

Return Type

WikiPage

GetRating

Gets the rating

Usage

#set($ratingResponse = $core_v2_wikiPage.GetRating($id))

Parameters

NameTypeDescriptionRequiredDefaultOptions
idintWiki Page IdRequired

Return Type

Rating

IncrementViewCount

Increments the view count on the wiki page

Usage

$core_v2_wikiPage.IncrementViewCount($id)

Parameters

NameTypeDescriptionRequiredDefaultOptions
idintWiki Page IdRequired

IsFavorite

Returns favorite status for the accessing user

Usage

#set($booleanResponse = $core_v2_wikiPage.IsFavorite($id))

Parameters

NameTypeDescriptionRequiredDefaultOptions
idintWiki Page IdRequired

Return Type

bool

IsSubscribed

Returns subscribed status for the accessing user

Usage

#set($booleanResponse = $core_v2_wikiPage.IsSubscribed($id))

Parameters

NameTypeDescriptionRequiredDefaultOptions
idintWiki Page IdRequired

Return Type

bool

List

Lists Wiki Pages

Usage

#set($pagedListResponse = $core_v2_wikiPage.List($wikiId, "%{AuthorId = $authorIdArg, GroupId = $groupIdArg, IncludeSubGroupContent = $includeSubGroupContentArg, PageIndex = $pageIndexArg, PageSize = $pageSizeArg, ParentPageId = $parentPageIdArg, QueryType = $queryTypeArg, SortBy = $sortByArg, Tags = $tagsArg}"))

Parameters

NameTypeDescriptionRequiredDefaultOptions
wikiIdintWiki IdRequired
AuthorIdintAuthor IdOptional
GroupIdintGroup IdOptional
IncludeSubGroupContentboolInclude Sub Group ContentOptionalFalse
PageIndexintSpecify the page number of paged results to return. Zero-based index.Optional0
PageSizeintSpecify the number of results to return per page.Optional20
ParentPageIdintParent Page IdOptional
QueryTypestringQuery TypeOptionalAll, AllByTags, New, Updated
SortBystringSort ByOptionalDateDate, Score:SCORE_ID
TagsstringTagsOptional

Return Type

PagedList<WikiPage>

SetFavorite

Sets favorite status for the accessing user

Usage

$core_v2_wikiPage.SetFavorite($id, $favorite)

Parameters

NameTypeDescriptionRequiredDefaultOptions
idintWiki Page IdRequired
favoriteboolFavorite StatusRequired

SetRating

Sets the rating for the accessing user

Usage

$core_v2_wikiPage.SetRating($id, $rating)

Parameters

NameTypeDescriptionRequiredDefaultOptions
idintWiki Page IdRequired
ratingintRating value (0-5)Required

SetSubscribed

Sets subscribed status for the accessing user

Usage

#set($additionalInfoResponse = $core_v2_wikiPage.SetSubscribed($id, $subscribe))

Parameters

NameTypeDescriptionRequiredDefaultOptions
idintWiki Page IdRequired
subscribeboolSubscribed StatusRequired

Return Type

AdditionalInfo

Update

Updates a Wiki Page

Usage

#set($wikiPageResponse = $core_v2_wikiPage.Update($id, "%{Body = $bodyArg, FeaturedImage = $featuredImageArg, ForumThreadId = $forumThreadIdArg, IsFeatured = $isFeaturedArg, IsLocked = $isLockedArg, IsPublished = $isPublishedArg, ParentPageId = $parentPageIdArg, SaveRevision = $saveRevisionArg, Tags = $tagsArg, Title = $titleArg, UserId = $userIdArg}"))

Parameters

NameTypeDescriptionRequiredDefaultOptions
idintIdRequired
BodystringBodyOptional
FeaturedImagestringUsed to include a featured image when IsFeatured is true.Optional
ForumThreadIdintRelated Forum ThreadOptional
IsFeaturedboolIs FeaturedOptionalFalse
IsLockedboolIs LockedOptionalFalse
IsPublishedboolIs PublishedOptionalTrue
ParentPageIdintParent Page IdOptional
SaveRevisionboolSave RevisionOptionalTrue
TagsstringA comma separated list of tags.Optional
TitlestringTitleOptional
UserIdintUser IdOptional

Return Type

WikiPage