Orchard CMS Theming with Visual Studio
Overview
- Download and unzip Orchard Source (or enlist).
- Open and build the Orchard.sln
- Setup Orchard and create a theme.
Details
Download and unzip Orchard Source
- Go to orchard.codeplex.com/releases/view/115750
- Download Orchard.Source.1.8.zip
- Right click on the .zip > Properties > Unblock
- Right click > Extract All
Open in Visual Studio
- Open the src\Orchard.sln file with Visual Studio.
- In Visual Studio, build Orchard.Web to create the orchard.exe tool
Setup Orchard and Create a Theme
- Run orchard.exe
- Run the one-time setup command.
- Turn on Code Generation.
- Generate your theme.
- While you’re at it, enable ShapeTracing.
orchard.exe setup /SiteName:SITE /AdminUsername:USER /AdminPassword:PASS /DatabaseProvider:SQLCE feature enable Orchard.CodeGeneration codegen theme My.FirstTheme /CreateProject:true /IncludeInSolution:true /BasedOn:TheThemeMachine theme enable My.FirstTheme feature enable Orchard.DesignerTools