Enables scripted content fragments to use Blogs

Properties

NameTypeDescriptionDefaultOptions
ApplicationTypeIdGuidBlogs application type identifier
ContentTypeIdGuidBlogs content type identifier
CurrentBlogCurrent contextual blog

Methods

Create

Creates a new blog

Usage

#set($blogResponse = $core_v2_blog.Create($groupId, $name))

Parameters

NameTypeDescriptionRequiredDefaultOptions
groupIdintGroup IdRequired
namestringNameRequired

Return Type

Blog

Create

Creates a new blog

Usage

#set($blogResponse = $core_v2_blog.Create($groupId, $name, "%{Description = $descriptionArg, Enabled = $enabledArg, Key = $keyArg}"))

Parameters

NameTypeDescriptionRequiredDefaultOptions
groupIdintGroup in which to create the blogRequired
namestringName of the blogRequired
DescriptionstringDescriptionOptional
EnabledboolEnabledOptionalTrue
KeystringIf not specified, the key will be generatedOptional

Return Type

Blog

CreateContactRequest

Creates a contact request

Usage

#set($blogContactRequestResponse = $core_v2_blog.CreateContactRequest($blogId, $subject, $body, $name, $emailAddress, $dateCreated, $ipAddress))

Parameters

NameTypeDescriptionRequiredDefaultOptions
blogIdintBlog IdRequired
subjectstringSubjectRequired
bodystringBodyRequired
namestringNameRequired
emailAddressstringEmail AddressRequired
dateCreatedDateTimeDate CreatedRequired
ipAddressstringIp AddressRequired

Return Type

BlogContactRequest

Delete

Deletes a blog

Usage

#set($additionalInfoResponse = $core_v2_blog.Delete($id))

Parameters

NameTypeDescriptionRequiredDefaultOptions
idintBlog IdRequired

Return Type

AdditionalInfo

Get

Gets a blog

Usage

#set($blogResponse = $core_v2_blog.Get($applicationId))

Parameters

NameTypeDescriptionRequiredDefaultOptions
applicationIdGuidApplication IdRequired

Return Type

Blog

Get

Gets a blog

Usage

#set($blogResponse = $core_v2_blog.Get("%{GroupId = $groupIdArg, Id = $idArg, Key = $keyArg}"))

Parameters

NameTypeDescriptionRequiredDefaultOptions
GroupIdintEither the Id or the Key + GroupId are requiredOptional
IdintEither the Id or the Key + GroupId are requiredOptional
KeystringEither the Id or the Key + GroupId are requiredOptional

Return Type

Blog

GetContactRequest

Gets a contact request

Usage

#set($blogContactRequestResponse = $core_v2_blog.GetContactRequest($id))

Parameters

NameTypeDescriptionRequiredDefaultOptions
idintIdRequired

Return Type

BlogContactRequest

IsFavorite

Returns favorite status for the accessing user

Usage

#set($booleanResponse = $core_v2_blog.IsFavorite($blogId))

Parameters

NameTypeDescriptionRequiredDefaultOptions
blogIdintBlog IdRequired

Return Type

bool

IsSubscribed

Returns subscribed status for the accessing user

Usage

#set($booleanResponse = $core_v2_blog.IsSubscribed($blogId))

Parameters

NameTypeDescriptionRequiredDefaultOptions
blogIdintBlog IdRequired

Return Type

bool

List

Returns a listing of all blogs

Usage

#set($pagedListResponse = $core_v2_blog.List())

Return Type

PagedList<Blog>

List

Returns a queried listing of blogs

Usage

#set($pagedListResponse = $core_v2_blog.List("%{GroupId = $groupIdArg, IncludeSubGroups = $includeSubGroupsArg, OwnerUserId = $ownerUserIdArg, PageIndex = $pageIndexArg, PageSize = $pageSizeArg, PermissionId = $permissionIdArg, SortBy = $sortByArg, SortOrder = $sortOrderArg, UserId = $userIdArg}"))

Parameters

NameTypeDescriptionRequiredDefaultOptions
GroupIdintGroup IDOptional
IncludeSubGroupsboolWhether or not query should include sub-groupsOptional
OwnerUserIdintUser ID of the owner of the blogs. When this value is present, only blogs where the given user is an owner are returned.Optional
PageIndexintSpecify the page number of paged results to return. Zero-based index.Optional0
PageSizeintSpecify the number of results to return per page.Optional20
PermissionIdstringUsed to get a list of blogs for which the user set in UserId has the provided Permission ID.Optional
SortBystringAttribute to order the resultsOptionalMostComments, MostRecent, MostViewed, Score:SCORE_ID
SortOrderstringDirection to sort the resultsOptionalAscendingAscending, Descending
UserIdintUser ID of the user to check permissions for. This option is only used whenever the PermissionId is also supplied.Optional

Return Type

PagedList<Blog>

ListContactRequests

Lists contact requests

Usage

#set($pagedListResponse = $core_v2_blog.ListContactRequests($blogId))

Parameters

NameTypeDescriptionRequiredDefaultOptions
blogIdintBlog IdRequired

Return Type

PagedList<BlogContactRequest>

ListContactRequests

Lists contact requests

Usage

#set($pagedListResponse = $core_v2_blog.ListContactRequests($blogId, "%{IsModerated = $isModeratedArg, PageIndex = $pageIndexArg, PageSize = $pageSizeArg}"))

Parameters

NameTypeDescriptionRequiredDefaultOptions
blogIdintBlog IdRequired
IsModeratedboolIs ModeratedOptionalFalse
PageIndexintSpecify the page number of paged results to return. Zero-based index.Optional0
PageSizeintSpecify the number of results to return per page.Optional20

Return Type

PagedList<BlogContactRequest>

ListForQuickPost

Lists blogs available for a quick post context for the accessing user and current group

Usage

#set($iListResponse = $core_v2_blog.ListForQuickPost())

Return Type

IList<Blog>

ListTaggedContent

Lists tagged content. This method is supported for backwards compatibility, but $core_v2_taggedContent.List() should be used if possible.

Usage

#set($pagedListResponse = $core_v2_blog.ListTaggedContent($tags, "%{BlogId = $blogIdArg, GroupId = $groupIdArg, PageIndex = $pageIndexArg, PageSize = $pageSizeArg}"))

Parameters

NameTypeDescriptionRequiredDefaultOptions
tagsIList<string>TagsRequired
BlogIdintBlog IdOptional
GroupIdintGroup IdOptional
PageIndexintSpecify the page number of paged results to return. Zero-based index.Optional0
PageSizeintSpecify the number of results to return per page.Optional20

Return Type

PagedList<TaggedContent>

ListTags

Lists tags. This method is supported for backwards compatibility, but $core_v2_tags.List() should be used if possible.

Usage

#set($pagedListResponse = $core_v2_blog.ListTags("%{BlogId = $blogIdArg, FilterTags = $filterTagsArg, GroupId = $groupIdArg, MinimumItemsPerTag = $minimumItemsPerTagArg, PageIndex = $pageIndexArg, PageSize = $pageSizeArg}"))

Parameters

NameTypeDescriptionRequiredDefaultOptions
BlogIdintBlog IdOptional
FilterTagsIList<string>Tags to filter byOptional
GroupIdintGroup IdOptional
MinimumItemsPerTagintMinimum Items Per TagOptional
PageIndexintPage IndexOptional0
PageSizeintPage SizeOptional100

Return Type

PagedList<Tag>

Search

Performs a blog search

Usage

#set($pagedListResponse = $core_v2_blog.Search($queryText, "%{GroupId = $groupIdArg, GroupId = $groupIdArg, IncludeSubGroups = $includeSubGroupsArg, PageIndex = $pageIndexArg}"))

Parameters

NameTypeDescriptionRequiredDefaultOptions
queryTextstringQuery TextRequired
GroupIdGroup IdOptional
GroupIdGroup IdOptional
IncludeSubGroupsInclude Sub GroupsOptional
PageIndexintSpecify the page number of paged results to return. Zero-based index.Optional0

Return Type

PagedList<SearchResult>

SetFavorite

Sets favorite status for the accessing user

Usage

$core_v2_blog.SetFavorite($blogId, $favorite)

Parameters

NameTypeDescriptionRequiredDefaultOptions
blogIdintBlog IdRequired
favoriteboolFavorite StatusRequired

SetSubscribed

Sets subscribed status for the accessing user

Usage

#set($additionalInfoResponse = $core_v2_blog.SetSubscribed($blogId, $subscribe))

Parameters

NameTypeDescriptionRequiredDefaultOptions
blogIdintBlog IdRequired
subscribeboolSubscribed StatusRequired

Return Type

AdditionalInfo

SubscribeAnonymously

Usage

#set($nullableResponse = $core_v2_blog.SubscribeAnonymously($blogId, $email))

Parameters

NameTypeDescriptionRequiredDefaultOptions
blogIdintBlog IdRequired
emailstringEmailRequired

Return Type

AnonymousBlogSubscriptionResponse?

Update

Updates a blog

Usage

#set($blogResponse = $core_v2_blog.Update($id, "%{Description = $descriptionArg, Enabled = $enabledArg, GroupId = $groupIdArg, Key = $keyArg, Name = $nameArg}"))

Parameters

NameTypeDescriptionRequiredDefaultOptions
idintIdRequired
DescriptionstringDescriptionOptional
EnabledboolEnabledOptionalTrue
GroupIdintGroup IdOptional
KeystringIf not specified, the key will be generatedOptional
NamestringNameOptional

Return Type

Blog