PlasticStudio\SEO\Model\Extension\SeoPageExtension
Synopsis
class SeoPageExtension
extends DataExtension
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $many_many = ;
- private static array $owns = ;
- private static array $defaults = ;
- private PaginatedList $pagination;
- // methods
- public FieldList updateSettingsFields()
- public void updateSummaryFields()
- public array getSummaryFields()
- public array getSitemapChangeFrequency()
- public array getRobotsIndexingRules()
- public array getOGtypes()
- public array getOGlocales()
- public array getTwitterCardTypes()
- public string getPageMetaTitle()
- public string getPageMetaDescription()
- public string getPageCanonical()
- public static bool excludeSiteFromIndexing()
- public string getPageRobots()
- public string getPageURL()
- public string getPageOgType()
- public string getPageOgLocale()
- public string getPageTwitterCard()
- public string getPageSocialImage()
- public string getSiteFacebookAppID()
- public string getSiteOgSiteName()
- public string getSiteTwitterHandle()
- public string getSiteCreatorTwitterHandle()
- public string getPageCharset()
- public boolean isCMSPreviewPage()
- public int getCMSPageID()
- public string getCMSPageEditLink()
- public string getPublishedIcon()
- public string getSitemapDate()
- public string|404 setPaginationTags()
- public string getPaginationPrevTag()
- public string getPaginationNextTag()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
private
-
$db
Our page fields -
$defaults
Sitemap defaults -
$has_one
Social image and other has_one relations -
$many_many
Has many extra Meta tags - $owns
- $pagination
—
SilverStripe\ORM\PaginatedList
A PaginatedList instance used for rel Meta tags
Methods
public
- excludeSiteFromIndexing() — check whether the domain currently being viewed has been configure to be excluded from indexing
- getCMSPageEditLink() — Get the current page edit link
- getCMSPageID() — Get the current page ID
- getOGlocales() — Return an array of Facebook Open Graph locales used in Meta tags
- getOGtypes() — Return an array of Facebook Open Graph Types used in Meta tags
- getPageCanonical() — Get the current page canonical tag URL
- getPageCharset() — Get the current page Meta charset value
- getPageMetaDescription() — Get the current page Meta description
- getPageMetaTitle() — Get the current page Meta title
- getPageOgLocale() — Get the current page Meta open graph locale
- getPageOgType() — Get the current page Meta open graph type
- getPageRobots() — Get the current page Meta robots rules
- getPageSocialImage() — Get the current page Meta social sharing image
- getPageTwitterCard() — Get the current page Meta Twitter card type
- getPageURL() — Get the current page URL // todo getAbsoluteURL()?
- getPaginationNextTag() — Get the current page next pagination link
- getPaginationPrevTag() — Get the current page prev pagination link
- getPublishedIcon() — Get the current page published status icon
- getRobotsIndexingRules() — Returns an array of robots crawling rules used in a robots Meta tag
- getSiteCreatorTwitterHandle() — Get the current site Twitter creator handle
- getSiteFacebookAppID() — Get the current site Facebook app ID
- getSiteOgSiteName() — Get the current site open graph site name
- getSiteTwitterHandle() — Get the current site Twitter handle
- getSitemapChangeFrequency() — Returns an array of sitemap change frequencies used in a sitemap.xml file
- getSitemapDate() — Get the LastEdited object property as an ISO foramtted date for XML sitemap
- getSummaryFields() — Returns an array of summary fields used in the SEO Admin section of the CMS
- getTwitterCardTypes() — Returns an array of Twitter card types used in Meta tags
- isCMSPreviewPage() — Returns true when the current page is a CMS preview
- setPaginationTags() — Sets a Paginated list object which the prev and next rel tags will be calculated off. This method validates the current $_GET param used for pagination and will return a 404 response if the $_GET var is outside of the expected range. e.g start=100 but only 99 items in the list
- updateSettingsFields() — Adds our SEO Meta fields to the page settings field list. The tab is divided into logical sections controlling various aspects of page SEO.
- updateSummaryFields() — Change the grid summary field structure is currently in SEO admin