Info
Version: | 10.3.0.25878 |
Author(s): | Richard J. Cabral |
Last Update: | Friday, June 16, 2023 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://constellation4sitecore.com/feature/page-tagging/ |
NuGet Url: | https://www.nuget.org/packages/Constellation.Feature.PageTagging |
Install
Install-Package Constellation.Feature.PageTagging
dotnet add package Constellation.Feature.PageTagging
paket add Constellation.Feature.PageTagging
Constellation.Feature.PageTagging Download (Unzip the "nupkg" after downloading)
Dependencies
- Constellation.Foundation.Data(>= 10.0.1.23619)
- Constellation.Foundation.ModelMapping(>= 10.0.6.24075)
- Constellation.Foundation.PackageVerification(>= 10.0.1.16481)
- Sitecore.Mvc(>= 10.0.0)
Tags
Requires .NET Framework 4.8
Constellation is a collection of utilities for .NET CMS implementers.
The Feature.PageTagging namespace contains controllers that will render the following meta tags when installed on page:
- name=keywords
- name=description
- name=publisher
- name=author
- name=robots
- name=twitter:card
- name=twitter:creator
- name=twitter:site
- property=og:url
- property=og:title
- property=og:description
- property=og:image
These tags provide good SEO support as well as good support for Facebook and Twitter.
The Sitecore Package in /Installation-Packages must be installed to take advantage of this library.
The package includes:
- Data Templates for the fields required to support these tags. Your pages should inherit from these to take advantage of this library.
- List items where fields have a limited choice of values.
- Rendering definitions.
The package should self-install when you build and deploy your project.
To use, in your Layout, at the appropriate location enter the following:
@Html.Sitecore().Rendering("/sitecore/layout/renderings/feature/constellation/page tagging/page metadata")
@Html.Sitecore().Rendering("/sitecore/layout/renderings/feature/constellation/page tagging/page search engine directives")
@Html.Sitecore().Rendering("/sitecore/layout/renderings/feature/constellation/page tagging/page social metadata").