CyberDuck\SEO\Model\Extension\SeoExtension
- Author: <andrewm@cyber-duck.co.uk> SeoExtension Core extension to convert a DataObject into a page with detailed SEO configuration. The user should add a URLSegment & Title field to their DataObject as well as a Link() method.
- License: MIT License https://github.com/cyber-duck/silverstripe-seo/blob/master/LICENSE
Synopsis
class SeoExtension
extends SeoPageExtension
{
- // members
- private static array $db = ;
- // methods
- public FieldList updateCMSFields()
- // Inherited methods from SeoPageExtension
- public FieldList updateCMSFields()
- 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 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
Members
private
-
$db
Page Meta fields to add to DataObjects with this extension.
Methods
public
- updateCMSFields() — Add title and URL segment fields to a DataObject
Inherited from CyberDuck\SEO\Model\Extension\SeoPageExtension
public
- 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
- updateCMSFields() — Adds our SEO Meta fields to the page 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