Blog_Controller
class Blog_Controller extends Page_Controller (View source)
Properties
protected | DataList | $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.
Details
string
index()
No description
SS_HTTPResponse
profile()
Renders a Blog Member's profile.
null|Member
getCurrentProfile()
Get the Member associated with the current URL segment.
null|DataList
getCurrentProfilePosts()
Get posts related to the current Member profile.
null|SS_HTTPResponse
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|SS_HTTPResponse
tag()
Renders the blog posts for a given tag.
null|BlogTag
getCurrentTag()
Tag Getter for use in templates.
null|SS_HTTPResponse
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.
PaginatedList
PaginatedList()
Returns a list of paginated blog posts based on the BlogPost dataList.
string
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
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|Date
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.