This service is available via Telligent.Evolution.Extensibility.Apis.Get<Telligent.Evolution.Extensibility.Api.Version1.IBlogPosts>()
and is defined in Telligent.Evolution.Blogs.dll
Events
Events.AfterCreate
Handler
void BlogPostAfterCreateEventHandler(BlogPostAfterCreateEventArgs e);
Events.AfterDelete
Handler
void BlogPostAfterDeleteEventHandler(BlogPostAfterDeleteEventArgs e);
Events.AfterUpdate
Handler
void BlogPostAfterUpdateEventHandler(BlogPostAfterUpdateEventArgs e);
Events.BeforeCreate
Handler
void BlogPostBeforeCreateEventHandler(BlogPostBeforeCreateEventArgs e);
Events.BeforeDelete
Handler
void BlogPostBeforeDeleteEventHandler(BlogPostBeforeDeleteEventArgs e);
Events.BeforeUpdate
Handler
void BlogPostBeforeUpdateEventHandler(BlogPostBeforeUpdateEventArgs e);
Events.Render
Handler
void BlogPostRenderEventHandler(BlogPostRenderEventArgs e);
Methods
BlogPost Create(int blogId, string title, string body, BlogPostsCreateOptions options = null);
Creates a new blog post
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
blogId | int | Id of parent blog | Required | ||
title | string | Title of blog post | Required | ||
body | string | Content of blog post | Required | ||
options | BlogPostsCreateOptions | Optional parameter names are: Slug, Excerpt, ExcerptSize, UsePostSummary, GeneratePostSummary, PublishedDate, IsApproved, Tags, ContentType, FileName, FileData, FileUrl, FileStream, FileUploadContext, IsFeatured, FeaturedImage, ExtendedAttributes,OpenGraphTitle,OpenGraphDescription, OpenGraphImageData, OpenGraphImageContext, MetatTitle, MetaDescription, MetaKeywords | Optional |
Return Type
AdditionalInfo Delete(int id);
Deletes a blog post
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
id | int | Id of the blog post | Required |
Return Type
BlogPost Get(BlogPostsGetOptions options);
Gets a blog post
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
options | BlogPostsGetOptions | Options | Required |
Return Type
BlogPost Get(Guid contentId);
Gets a blog post
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | Content Id | Required |
Return Type
PagedList<BlogPost> List(BlogPostsListOptions options);
Lists blog posts
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
options | BlogPostsListOptions | Optional parameters are: BlogId, BlogIds, GroupId, IncludeSubGroups, ContentIds, IncludeUnpublished, Tags, DateFilter, DateFilterType, LogicallyOrTags, SortBy, SortOrder, PageIndex, PageSize, AuthorId. If left unspecified, sorting defaults to MostRecent Descending. | Required |
Return Type
BlogPost Update(int id, BlogPostsUpdateOptions options);
Updates a blog post
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
id | int | Id of the blog post to update | Required | ||
options | BlogPostsUpdateOptions | Optional parameter names are: BlogId, Title, Body, Slug, Excerpt, ExcerptSize, UsePostSummary, GeneratePostSummary, PublishedDate, IsApproved, ContentType, FileName, FileData, FileUrl, FileStream, FileUploadContext, RemoveAttachment, Tags, IsFeatured, FeaturedImage, ExtendedAttributes, OpenGraphTitle,OpenGraphDescription, OpenGraphImageData, OpenGraphImageContext, MetatTitle, MetaDescription, MetaKeywords, RemoveOpenGraphImage | Required |