Skip to content

MikeKry/Etch.OrchardCore.SEO

 
 

Repository files navigation

Etch.OrchardCore.SEO

Module for Orchard Core that provides useful features for SEO (search engine optimisation).

Build Status

Build Status NuGet

Orchard Core Reference

This module is referencing the RC1 build of Orchard Core (1.0.0-rc1-10004).

Features

Hostname redirects

Define main hostname to redirect all domain variations and force SSL.

Meta Tags

Attach content part that gives content editors ability to manage basic meta tags (inspired by metatags.io).

Known Issues

When using this module you may notice the page title will include the display text for the content item as well as the value defined in the title field. This is because the ContentsMetadata shape within Orchard Core will automatically add the display text for a content item to a page title. The work around is to override the ContentsMetadata shape within your theme. Below is the Razor template that will set the page title to the value entered in the meta tag title field. When the content type doesn't have the MetaTagsPart attached or no value has been defined within the title field the default approach of using the display text for the content item is used.

@using OrchardCore.ContentManagement

@{
    ContentItem contentItem = Model.ContentItem;

    if (Model.ContentItem.Content.MetaTagsPart == null || string.IsNullOrWhiteSpace((string)Model.ContentItem.Content.MetaTagsPart.Title)) {
        Title.AddSegment(Html.Raw(Html.Encode(contentItem.DisplayText)));
    }
}

Under development

Redirects

Create redirect content items that'll redirect a relative URL to another URL.

Known Issues

When creating a content item to redirect from homepage to another page, you need to make sure to disable the Home Route Module to make the redirect work correctly.

Import

This feature adds the ability to bulk import redirects from an XLSX file.

Robots.txt

Manage contents of /robots.txt.

Installing

This module is available on NuGet. Add a reference to your Orchard Core web project via the NuGet package manager. Search for "Etch.OrchardCore.SEO", ensuring include prereleases is checked.

About

Module for Orchard Core that provides useful features for SEO.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 82.5%
  • HTML 16.9%
  • Other 0.6%