SilverStripe\Blog\Model\BlogController
Synopsis
class BlogController
extends PageController
{
- // members
- private static array $allowed_actions = ;
- private static array $url_handlers = ;
- private static array $casting = ;
- private static bool $disable_profiles = false;
- protected DataList $blogPosts;
- // methods
- public string index()
- public string profile()
- public null|Member getCurrentProfile()
- public null|DataList getCurrentProfilePosts()
- public null|string archive()
- public int getArchiveYear()
- public null|int getArchiveMonth()
- public null|int getArchiveDay()
- public null|string tag()
- public null|BlogTag getCurrentTag()
- public null|string category()
- public null|BlogCategory getCurrentCategory()
- public string getMetaTitle()
- public string getFilterDescription()
- public PaginatedList PaginatedList()
- public string|null PaginationAbsoluteNextLink()
- public string|null PaginationAbsolutePrevLink()
- public string rss()
- public null|DBDatetime getArchiveDate()
- public string getRSSLink()
- protected string rssFeed()
- protected bool isRSS()
Hierarchy
Extends
- PageController
Members
private
- $allowed_actions — array
- $casting — array
- $disable_profiles
—
SilverStripe\Blog\Model\bool
If enabled, blog author profiles will be turned off for this site - $url_handlers — array
protected
- $blogPosts
—
SilverStripe\ORM\DataList
The current Blog Post DataList query.
Methods
protected
- isRSS() — Returns true if the $Rss sub-action for categories/tags has been set to "rss"
- rssFeed() — Displays an RSS feed of the given blog posts.
public
- PaginatedList() — Returns a list of paginated blog posts based on the BlogPost dataList.
- 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.
- 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.
- archive() — Renders an archive for a specified date. This can be by year or year/month.
- category() — Renders the blog posts for a given category.
- getArchiveDate() — Returns the current archive date.
- getArchiveDay() — Fetches the archive day from the url.
- getArchiveMonth() — Fetches the archive money from the url.
- getArchiveYear() — Fetches the archive year from the url.
- getCurrentCategory() — Category Getter for use in templates.
- getCurrentProfile() — Get the Member associated with the current URL segment.
- getCurrentProfilePosts() — Get posts related to the current Member profile.
- getCurrentTag() — Tag Getter for use in templates.
- getFilterDescription() — Returns a description of the current filter.
- getMetaTitle() — Get the meta title for the current action.
- getRSSLink() — Returns a link to the RSS feed.
- index()
- profile() — Renders a Blog Member's profile.
- rss() — Displays an RSS feed of blog posts.
- tag() — Renders the blog posts for a given tag.