BlogController
class BlogController extends PageController (View source)
Properties
protected | BlogPost> | $blogPosts | The current Blog Post DataList query. |
Methods
Renders an archive for a specified date. This can be by year or year/month.
Returns a list of paginated blog posts based on the BlogPost dataList.
Returns the absolute link to the next page for use in the page meta tags. This helps search engines find the pagination and index all pages properly.
Returns the absolute link to the previous page for use in the page meta tags. This helps search engines find the pagination and index all pages properly.
Returns true if the $Rss sub-action for categories/tags has been set to "rss"
Details
string
index(HTTPRequest $request)
No description
string
profile()
Renders a Blog Member's profile.
null|Member
getCurrentProfile()
Get the Member associated with the current URL segment.
null|BlogPost>
getCurrentProfilePosts()
Get posts related to the current Member profile.
null|string
archive()
Renders an archive for a specified date. This can be by year or year/month.
int
getArchiveYear()
Fetches the archive year from the url.
null|int
getArchiveMonth()
Fetches the archive money from the url.
null|int
getArchiveDay()
Fetches the archive day from the url.
null|string
tag()
Renders the blog posts for a given tag.
null|BlogTag
getCurrentTag()
Tag Getter for use in templates.
null|string
category()
Renders the blog posts for a given category.
null|BlogCategory
getCurrentCategory()
Category Getter for use in templates.
string
getMetaTitle()
Get the meta title for the current action.
string
getFilterDescription()
Returns a description of the current filter.
BlogPost>
PaginatedList()
Returns a list of paginated blog posts based on the BlogPost dataList.
string|null
PaginationAbsoluteNextLink()
Returns the absolute link to the next page for use in the page meta tags. This helps search engines find the pagination and index all pages properly.
string|null
PaginationAbsolutePrevLink()
Returns the absolute link to the previous page for use in the page meta tags. This helps search engines find the pagination and index all pages properly.
string
rss()
Displays an RSS feed of blog posts.
null|DBDatetime
getArchiveDate()
Returns the current archive date.
string
getRSSLink()
Returns a link to the RSS feed.
protected string
rssFeed(DataList $blogPosts, string $link)
Displays an RSS feed of the given blog posts.
protected bool
isRSS()
Returns true if the $Rss sub-action for categories/tags has been set to "rss"