ykankaya / Alloy.Multisite

Demo of a simple multi tenant Episerver Alloy site.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#Setup Create a new website in IIS with the following bindings:

local.alloy.com local2.alloy.com local3.alloy.com

Add host entry lines for above bindings for 127.0.0.1 in the following file:

C:\Windows\System32\drivers\etc\hosts

SQL

Setup SQL Express 2014 with the database, EPiServerDB_bf213514.mdf, located in the App_Data folder, and update the connection string.

or

Follow instructions here to use LocalDb for IIS.

Code Components

  • Business/SelectionFactories/LayoutSelector.cs - creates dropdown of folders in ~/Views/Shared/Layouts
  • Views/_viewstart.cshtml - gets values of SiteLayout from start page type and adds to path.
  • Models/Pages/StartPage.cs - has property using LayoutSelector to allow single layout selection.

About

Demo of a simple multi tenant Episerver Alloy site.


Languages

Language:C# 89.9%Language:CSS 7.6%Language:JavaScript 2.2%Language:HTML 0.2%Language:ASP 0.1%