Enable Master Pages, nicer URLs and Sitemap protocol on your C1 websites

The Contribution.CompositeC1Contrib.Core package automates installation and configuration of the community's Composite C1 Contrib solution in Composite C1.

The solution itself optimizes and extends the possibilities of Composite C1, namely, allows you to use:

  • ASP.NET Master Pages instead of, or along with, XML-based page layout templates
  • Nicer URLs (no extension, lowercase, underscores instead of dashes etc)
  • A sitemap compliant with the Sitemap Protocol standard

The package installs required components and adds needed settings to web.config of your C1 website.

How to use Contribution.CompositeC1Contrib.Core

  1. Install the package
  2. Do one of the following
  • Use Master pages
  • Use nicer URLs
  • Use the standardized sitemap

Using Master Pages

To use a master page:

  1. Create a master page in /App_Data/PageTemplates for each page layout template used in C1 (keeping the same name).
  2. Copy the <rendering:placeholder /> element from the XML-based page layout template to the matching master page and add a 'runat="server"' to the tag.

Note: If there is no matching master page for an XML-based template, the latter will be used; otherwise, the former.

For more information on Master Pages in C1, please see Web Form Master Pages.

Using nicer URLs

NOTE: Only applicable for Composite C1 version 2.1.1 or earlier. Composite C1 version 3.0 and later uses its own functionality for "nicer URLs".

The Nicer URLs functionality changes C1 page URLs so that they have no extensions (.aspx), are lowercase, '_' (underscore) is used instead of '-' (dash), etc . For example, http://www.contoso.com/MySite/Featured-Products.aspx will become http://www.contoso.com/featured_products

The functionality is available out-of-the-box right after installation of the package.

For more information on nicer URLs in C1, please see Nicer URLs.

Using the Sitemap

After installing the package, the C1 website delivers a sitemap compliant with the Sitemap Protocol standard out-of-the-box.

To view the sitemap for the default language:

  • In the Web browser open this URL: /sitemap.axd, for example: http://www.contoso.com/sitemap.axd

To view the sitemap for one of the languages of the website (e.g. Danish):

  • In the Web browser open this URL: [language code]/sitemap.axd, for example: http://www.contoso.com/da-DK/sitemap.axd

For more information on the Sitemap Protocol in C1, please see Sitemap Protocol.

Requirements

Composite C1 version 2.1.1 or later

SHARE