JonoM\ShareCare\ShareCareSingleSummary
Alternative to ShareCareFields extension that promotes the streamlined use of a single summary for index page listings, search engine results and social media shares.
Synopsis
class ShareCareSingleSummary
extends DataExtension
{
- // methods
- public void updateCMSFields()
- public void updateSettingsFields()
- public string getOGDescription()
- public string getDefaultOGDescription()
- public Image|string|false getOGImage()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
private
- $db
- $has_one
Methods
public
- getDefaultOGDescription() — The default/fallback value to be used in the 'og:description' open graph tag.
- getOGDescription() — The description that will be used in the 'og:description' open graph tag.
- getOGImage() — The Image object or absolute URL that will be used for the 'og:image' open graph tag.
- updateCMSFields() — Add and re-arrange CMS fields for streamlined summary editing.
- updateSettingsFields()