\MetaConfigPageExtension
Extension for Page that adds a lot of meta functionality
- Author: Martijn Schenk
Synopsis
class MetaConfigPageExtension
extends DataExtension
{
- // members
- protected Image|null $image;
- protected SiteConfig|null $config;
- private static array $db = ;
- // methods
- protected DataObject getSiteConfig()
- public void updateSettingsFields()
- public void updateMetaTags()
- public HTMLText GoogleRichSnippetLocalBusiness()
- public HTMLText OpenGraph()
- public HTMLText TwitterSummaryCard()
- protected null|Image getPageImage()
- public HTMLText GoogleScripts()
- public HTMLText GoogleBreadcrumbs()
- protected array|bool getGoogleBreadcrumbs()
- public HTMLText Canonical()
- protected string|bool NextLink()
- protected string|bool PrevLink()
Hierarchy
Extends
- DataExtension
Members
private
- $db
—
array
Database fields
protected
- $config
—
SiteConfig|null
Cache for the site image - $image
—
Image|null
Cache for the page image
Methods
protected
- NextLink() — Attempt to retrieve a next link
- PrevLink() — Attempt to retrieve a previous link
- getGoogleBreadcrumbs() — Retrieve the Breadcrumbs information in a schema.org defined array
- getPageImage() — Retrieve the image for this page
- getSiteConfig() — Retrieve the site config
public
- Canonical() — Retrieve the canonical, next and previous link tags
- GoogleBreadcrumbs() — Retrieve the Google breadcrumbs for this page
- GoogleRichSnippetLocalBusiness() — Generate a Google Rich Snippet for Local Business
- GoogleScripts() — Retrieve the Google scripts for this page
- OpenGraph() — Generate OpenGraph meta data
- TwitterSummaryCard() — Generate a Twitter Summary Card
- updateMetaTags() — Update the meta tags
- updateSettingsFields() — Update the settings tab