WebbuildersGroup\MetaPreview\Fields\MetaPreviewField
an extension to the @see DatalessField class
Synopsis
class MetaPreviewField
extends DatalessField
{
- // methods
- public void __construct()
- public {SiteConfig} getSiteConfig()
- public {DataList} getPage()
- public {String} getMetaTitle()
- public {String} getPreviewLink()
- public {String} getMetaDescription()
Hierarchy
Extends
- SilverStripe\Forms\DatalessField
Members
protected
- $id
- $page
Methods
public
- __construct()
- getMetaDescription() — return the appropiate MetaDescription
- getMetaTitle() — return the appropiate MetaTitle
- getPage() — return the current page
- getPreviewLink() — return the absoluteLink for the current page
- getSiteConfig() — get the current siteconfig