3 votes

Meta Momentum - Property Editor for Google Search and Facebook / Twitter Share

Meta Momentum is an Umbraco Data Type editor to manage SEO Title & description tags and Open Graph / Twitter Cards, with a visual representation of how it will look in a Google Search / Social Platform. 

Search features

The search display follows googles search restrictions in terms of titles being restricted by width, instead of a character count. This gives the user a good idea on how the title / description will show in an actual google search.

Additionally, you can specify fallbacks to other text properties in the document, so that the title for instance will fall back to a "Page Title" property if no title tag is supplied by the user.

Share Features

The Socal Share preview will give an acurate preview of the Facebook, Twiter and Linked in share previews. The content editor can swtich between the 3 previews to see how they will look when shared.

You can specify falbacks to other text fields for the share title and description. 

Backwards Compatible with Seo Metadata...

This plugin was inspired by Seo Meta by Ryan Lewis which I've used for Umbraco 7 for many years and was no longer being maintained and not avaliable for Umbraco 8.

If you were using this plugin in Umbraco 7, you can replace your SeoMetadata document type with Meta Momentum without any migration of data, or mucking around.

Installation

You can either install the plugin is though Nuget or using the package manager in Umbraco.

`Install-Package MetaMomentum`

After installation, you can create and configure a new MetaMomentum Data Type Umbraco -> Settings -> Data Types -> New Data Type. 

Configuration

Canfiguration can be done via the following Data Type setting fields: 

 

  • Title / Description fields for search: Turn this on to allow the content editor to edit the title and description tags. If turned off the content editor will not be able to edit the title and description and will be shown the text from the default falbacks.
  • Google Search Preview: Turn on to show the google search preview to the content editor. This will show a preview of how the Google search entry will look
  • Fallback Title Fields: You can enter a comma seperated list of DataType aliases, so that if the title is not filled in by the user, it will fall back to each alias in the list. If the alias is not filled in or does not exist in the DocType, then it will fall back to the next, until finally, it will use the page name as the title. The fallbacks only support fields in the form of a string, and does not support complex data types like the grid or nested content.
  • Fallback Description Fields: This is the same as the Fallback Title fields setting, however, if it finds no value, the description will be empty. 
  • Social Share fields: Turn this on to allow the content editor to edit the title and description tags for the share meta. If turned off the content editor will not be able to edit the title and description and will be shown the text from the default falbacks.
  • Facebook, Twitter, LinkedIn share preview: These 3 options will allow you to turn on / off the different share prewviews avaliable to the content editor. 
  • Fallback Image Fields: Same as Fallback Title Fields, but for images. You can specify media picker or upload fields (Upload field is limited *) as fallbacks. * Note: Upload fields have Limitations: When the image falls back to an upload field, the first time an image is selected, it needs to be saved and published twice (once to upload the image, and then a second time for it to be saved into the social media image).

 

App Settings

Additional global configuration can be added via the web.config AppSettings

 

  • <add key="MetaMomentum.OGSiteName" value="Meta Momentum" /> This sets the MetaMomentum.OGSiteName property which can be used to set the the `og:site_name` meta tag.
  • <add key="MetaMomentum.TwitterName" value="@DigitalMomentum" /> This sets the MetaMomentum.TwitterName property which can be used for the `twitter:site` meta tag for the Twitter Cart

 

Usage

There is a razor file that can be found under `/Views/Partials/Metamomentum/RenderMetaTags.cshtml` which will write out the specific tags. 

This can be included in the head of each page like the following (where `metaMomentum` is the DataType alias):

 @Html.Partial("MetaMomentum/RenderMetaTags", Model.Value("metaMomentum"))


Alternatively, you can access each of the properties using the following syntax:

Title:					@Model.Value<MetaMomentum.Models.MetaValues>.Title
Description:			@Model.Value<MetaMomentum.Models.MetaValues>.Description
Share Title:			@Model.Value<MetaMomentum.Models.MetaValues>.ShareTitle
Share Description:		@Model.Value<MetaMomentum.Models.MetaValues>.ShareDescription
Share Image:			@Model.Value<MetaMomentum.Models.MetaValues>.ShareImageUrl
Open Graph Site Name:	@Model.Value<MetaMomentum.Models.MetaValues>.OGSiteName
TwitterName:			@Model.Value<MetaMomentum.Models.MetaValues>.TwitterName


Or with Models Builder, strongly typed models:

Title:					@Model.MetaMomentum.Title
Description:			@Model.MetaMomentum.Description
Share Title:			@Model.MetaMomentum.ShareTitle
Share Description:		@Model.MetaMomentum.ShareDescription
Share Image:			@Model.MetaMomentum.ShareImageUrl
Open Graph Site Name:	@Model.MetaMomentum.OGSiteName
TwitterName:			@Model.MetaMomentum.TwitterName

Screenshots

Package owner

David Sheiles

David Sheiles

David has 301 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
Version 9.0.x (100%)
Version 8.16.x (100%)
Version 8.15.x (100%)
Version 8.14.x (100%)
Version 8.13.x (100%)
Version 8.12.x (100%)
Version 8.11.x (100%)
Version 8.10.x (100%)
Version 8.9.x (100%)
Version 8.8.x (100%)
Version 8.7.x (100%)
Version 8.6.x (100%)
Version 8.5.x (100%)
Version 8.4.x (100%)
Version 8.3.x (100%)
Version 8.2.x (100%)
Version 8.1.x (untested)
Version 8.0.x (untested)
Version 7.15.x (0%)
Version 7.14.x (0%)
Version 7.13.x (0%)
Version 7.12.x (0%)
Version 7.11.x (0%)
Version 7.10.x (0%)
Version 7.9.x (0%)
Version 7.8.x (0%)
Version 7.7.x (0%)
Version 7.6.x (0%)
Version 7.5.x (0%)
Version 7.4.x (0%)
Version 7.3.x (0%)
Version 7.2.x (0%)
Version 7.1.x (0%)
Version 7.0.x (0%)

You must login before you can report on package compatibility.

Package Information

  • Package owner: David Sheiles
  • Created: 16/04/2021
  • Current version 1.2.0
  • .NET version 4.7.2,5.0.0
  • License MIT
  • Downloads on Our: 38
  • Downloads on NuGet: 235
  • Total downloads : 273