\SiteTreeMetaExtension
Description
Synopsis
class SiteTreeMetaExtension
extends DataExtension
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static string $twitter_username = '';
- private static bool $twitter_card = true;
- private static bool $pinterest = false;
- private static string $meta_tab_name = 'Meta';
- private static string $title_pattern = "";
- // methods
- public FieldList updateCMSFields()
- public void onAfterPublish()
- public void onAfterWrite()
- public RestfulService_Response clearFacebookCache()
- public void MetaTags()
- public void getMetaTagCharset()
- public void getMetaTagGenerator()
- public void getTagTitle()
- public void getMetaTagDescription()
- public void getMetaTagRobots()
- public void getMetaTagResponsive()
- public void getMetaTagTwitter()
- public void getSchemaTagWebsite()
- public void getSchemaTagBreadcrumbs()
- public void getSchemaTagContactPoints()
- public void getSchemaTagLocalBusiness()
- public void getDefaultMetaTitle()
- public string getDefaultOGTitle()
- public string getDefaultOGDescription()
- public Image|string|false getDefaultOGImage()
- public void setTagTitle()
Hierarchy
Extends
- DataExtension
Members
private
- $db
—
array
Database fields - $has_one
—
array
Has_one relationship - $meta_tab_name
- $pinterest
—
bool
Whether or not to enable a Pinterest preview and fields. - $title_pattern
- $twitter_card
—
bool
Whether or not to generate a twitter card for this page. - $twitter_username
—
string
Twitter username to be attributed as owner/author of this page.
Methods
public
- MetaTags() — Extension hook to change all tags
- clearFacebookCache() — Tell Facebook to re-scrape this URL, if it is accessible to the public.
- getDefaultMetaTitle()
- getDefaultOGDescription() — The default/fallback value to be used in the 'og:description' open graph tag.
- getDefaultOGImage() — The default/fallback Image object or absolute URL to be used in the 'og:image' open graph tag.
- getDefaultOGTitle() — The default/fallback value to be used in the 'og:title' open graph tag.
- getMetaTagCharset()
- getMetaTagDescription()
- getMetaTagGenerator()
- getMetaTagResponsive()
- getMetaTagRobots()
- getMetaTagTwitter()
- getSchemaTagBreadcrumbs()
- getSchemaTagContactPoints()
- getSchemaTagLocalBusiness()
- getSchemaTagWebsite()
- getTagTitle()
- onAfterPublish() — Ensure public URLs are re-scraped by Facebook after publishing.
- onAfterWrite() — Ensure public URLs are re-scraped by Facebook after writing.
- setTagTitle()
- updateCMSFields() — Update Fields