SilverStripe\CMS\Model\RedirectorPage
A redirector page redirects when the page is visited.
Synopsis
class RedirectorPage
extends Page
{
- // members
- private static string $description = 'Redirects to an internal page or an external URL';
- private static string $icon_class = 'font-icon-p-redirect';
- private static boolean $show_stage_link = false;
- private static boolean $show_live_link = false;
- private static array $db = ;
- private static array $defaults = ;
- private static array $has_one = ;
- private static string $table_name = 'RedirectorPage';
- // methods
- public SiteTree ContentSource()
- public string Link()
- public string regularLink()
- public string redirectionLink()
- public void syncLinkTracking()
- protected void onBeforeWrite()
- public void getCMSFields()
- public void subPagesToCache()
Hierarchy
Extends
- Page
Members
private
- $db
- $defaults
- $description
- $has_one
- $icon_class
- $show_live_link
- $show_stage_link
- $table_name
Methods
protected
public
- ContentSource() — Returns this page if the redirect is external, otherwise returns the target page.
- Link() — Return the the link that should be used for this redirector page, in navigation, etc.
- getCMSFields()
- redirectionLink() — Return the link that we should redirect to.
- regularLink() — Return the normal link directly to this page. Once you visit this link, a 30x redirection will take you to your final destination.
- subPagesToCache()
- syncLinkTracking()