Download presentation
Presentation is loading. Please wait.
Published byCaroline Arleen Waters Modified over 9 years ago
1
Ken Casada Developer Evangelist Microsoft Switzerland Kcasada@microsoft.com http://blogs.msnd.com/swiss_dpe_team/Default.aspx Develop and maintain CMS solutions using WebMatrix and Orchard
2
Customize Publish Create What is WebMatrix?
3
Web ServerDatabase Web Framework WebMatrix includes
4
Students, New developers for quickly building websites with ASP.NET Professional Developers for your non daily-job for a “quick&dirty” solution Task Oriented: “I just need something done!” Developers who build small/medium sites for others Acquire an App, customize and deploy Who is WebMatrix for?
5
IIS Express ASP.NET Web Pages & Razor syntax SQL Server Compact Edition 4 Anatomy of WebMatrix
8
Based on the latest version of IIS server Installs in \program files, side-by-side IIS server Runs as interactive process, not as service Does not require Administrator privileges Fully supports all IIS7+ modules, ASP.NET, PHP You can run it from the command-line Open command prompt Navigate to: C:\Program Files (x86)\IIS Express\ iisexpress.exe /port:35896 /path:C:\BasicWebSite Open a browser and type: http://localhost:35896/...http://localhost:35896/ IIS Express
9
2MB package File-based database, Xcopy deployment with app Full support for Dynamic Data, ASP.NET MVC High fidelity API support: ADO.NET, EF, LINQ… Seamless migration path to SQL Server Support tables, indexes, foreign key, primary key Does not support SP, views, UDF, geo location types SQL Server Compact 4
10
Minimize concepts No need to understand OOP and classes Simple ASPIs & Helpers (for all common web tasks) Smooth on-ramp to ASP.NET MVC and Visual Studio SEO friendly by default No special tools required – works with notepad or any editor
11
Run a page in your site In the browser’s URL box, replace the name of the page with _Admin (first time you are required to create a pw) http://localhost:8080/_Admin Installing ASP.NET Helpers
12
Security: WebSite membership Recaptcha support preventing automated programs from registering with your website Video support (Silverlight, Flash, MediaPlayer) Image elaboration (thumbnail image, uploading image,…) Bing: embed bing search box into your website Chart: renders more than 30 types of charts Social Networking Linking your Website on Social Networking Sites Adding a Twitter Feed Rendering a Gravatar Image Displaying a Facebook “Like” Button PayPal And more…. Some available Helpers…
13
In the root folder of the web site, create a folder named App_Code In the App_Code folder create a new.cshtml file called MyHelpers.cshtml. Replace the content with Use the helper: @MyHelpers. MakeNote("My test note content") Creating a custom helper @helper MakeNote(string content) { Note @content }
14
Windows 7 Windows Server 2008 Windows Server 2008 R2 Windows Vista SP1 or later Windows XP SP3 Windows Server 2003 SP2 WebMatrix supported platform
15
http://orchardproject.net A CMS platform based on ASP.NET MVC 3 A quick and easy way to build small-medium sized sites Focused on modular extensibility Free, open source (new BSD license) Core MS team is 7 developers, 2 designers, 2 PMs Accepts community contributions Patches to core, modules, themes, translations, docs, etc What is Orchard?
17
How to create and publish a Page How to create a blog Basic concepts: Widget: piece of HTML content (with code and logic) which can be mapped / assigned to pages within a website Layer: defines a set of rules for rendering the widgets Zone: defines the position of the widget within a page (available zones depends on selected Theme) Demo Summary
18
Everything in Orchard is built as a module. Orchard comes with a bunch of pre-installed modules (additional modules are available within a module gallery) A module exposes 1 or more features which need to be activated in order to be used Modules
20
How to activate features using the Admin Panel (Remote Blog Publishing | XmlRpc) How to fix navigation Demo Summary
21
2 Types of localization: Application localization (admin panel) Content localization (content items in the db) Localization Support
23
Localization How to install additional modules from the online gallery How to activate features using the Command Line Utility How to create your own Theme Demo Summary
24
Shared Environment (medium-trust supported) Deploy on Windows Azure using Windows Azure Tools for VS http://orchardproject.net/docshttp://orchardproject.net/docs Support multi-tenancy Deployment
25
WebMatrix Download WebMatrix (available in 9 languages) http://www.microsoft.com/web/webmatrix/download WebMatrix tutorial available www.asp.net/webmatrix/tutorials Orchard Download Orchard 1.1 http://orchardproject.net/download Discussion, Forum, Public Mailing list: http://www.orchardproject.net/discussions 1 Year Free* Hosting for students www.academiczone.ch www.academiczone.ch *special terms of use apply Resources
26
Content type: parts & fields
27
Creating a map content part Creating a module (Maps module) exposing the map content part How do you create a module? orchard>codegen module Maps Module.txt Creating a map content part
28
Module.txt
29
Modules\Maps\Model\Map.cs
30
How do I create Migrations.cs? orchard>codegen datamigration maps Modules\Maps\Migrations.cs
31
Modules\Maps\Handlers\MapHandler.cs
32
Modules\Maps\Drivers\MapDriver.cs
33
Display View Editor View Modules\Maps\Views\.....\Map.cshtml
34
Where should Map.cshtml views be rendered? Modules\Maps\placement.info
36
© 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.