EPiServer.CommerceSiteMappings
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Solution to the problem of setting different EPiServer Commerce page types to different enterprise sites.
EPiServer.CommerceSiteMappings
==

EPiServer.CommerceSiteMappings is a solution that serves as a workaround to allow enterprise EPiServer CMS and EPiServer Commerce sites to have different product listing templates and product details templates for each enterprise site. This version was based off [the original solution provided by Nansen](http://blog.nansen.se/2011/06/mutiple-brands-in-episerver-commerce.html), then updated for the current version of EPiServer CMS. This was developed and tested with EPiServer CMS 6 R2, EPiServer Commerce 1 R2 SP1, and PageTypeBuilder 1.3.1.

Exerpts from the blog post:
>To solve this problem we extended EPiServer's `CatalogPageProvider` and did our own implementation of the function `GetPageType` that delivered different templates based on the catalog ID of the page.

>The differences between this implementation and EPiServer's is that we return different page types based on the catalog ID of the page that is loading.

>The mappings are saved in the dynamic data store and editable via a GUI plugin in EPiServer. If we can't find a mapping that is configured in our tool, we call EPiServer's default implementation to let it handle the request.

>As I said... this is the solution for our project, and the needs we had were each catalog is represented by only one page type.

The solution provided in the blog post was built for an older version of EPiServer CMS and EPiServer Commerce. In the new versions of EPiServer CMS and EPiServer Commerce, the main method that provides the PageType ID (`GetPageType`) in the `CatalogPageProvider` has been switched to `internal`. Therefore, instead of overriding the method as the blog post suggests, you'll need to retrieve the original `CatalogPageProvider` source, and update accordingly.

Usage
--

1) Add the CommerceSiteMappings.aspx plugin to your web root. The plugin will appear in Admin Mode under Tools.

2) Update episerver.config to reference your custom `CatalogPageProvider`

	
		
			
		
	

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。