g
Frontend | Backend | Api

Blogs\Models\Api\Post

Post

Property Description Returns
name Get the name for the active revision string
text Get the text for the active revision string
fullSlug Get the full slug for the post string
fullPath Get the full path for the post including the module and blog routes string
originalPath Get the original path to the post without any custom urls applied. string
author Fetches first author from the authors list Author
id int
site Site
slug string
totalCommentsCount int
publishedCommentsCount int
lockComments bool
featured bool
created Get the date the record was created. DateTime
modified Get the last modification date for the record. DateTime
published Get the date the record was published or is scheduled to be published. DateTime
published Check if the record is published. bool
authors Collection (Author)
blog Blog
tags Collection (Tag)
categories Collection (Category)
comments Collection (Comment)
activeRevision PostRevision
revisions Collection (PostRevision)
lastRevision Get the last revision for the entity. If a revision has been added, this will be the newly added revision. PostRevision
seoSettings SeoSettings
language Language
sourcePost Post
relatedPosts Collection (Post)
owner User
customUrl Get the custom url used for the page. This will take precedence over the slugs of this page, parent page and the module. CustomUrl