john c. zablocki development manager, healthcaresource organizer, beantown alt.net code camp nyc...
Post on 21-Dec-2015
220 views
TRANSCRIPT
![Page 1: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/1.jpg)
The Orchard ProjectFrom Installation to Customization
John C. ZablockiDevelopment Manager, HealthcareSourceOrganizer, Beantown ALT.NETCode Camp NYC 2011.22011-10-01
![Page 2: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/2.jpg)
Marquee Sponsor
![Page 3: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/3.jpg)
Platinum Sponsor
![Page 4: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/4.jpg)
Platinum Sponsor
![Page 5: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/5.jpg)
Gold Sponsor
![Page 6: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/6.jpg)
Gold Sponsor
![Page 7: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/7.jpg)
Gold Sponsor
![Page 8: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/8.jpg)
Gold Sponsor
![Page 9: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/9.jpg)
Gold Sponsor
![Page 10: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/10.jpg)
Gold Sponsor
![Page 11: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/11.jpg)
Silver Sponsors
![Page 12: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/12.jpg)
Agenda The Basics Glossary Security Development Installation Themes Modules Deployment Questions
![Page 13: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/13.jpg)
Orchard Basics
Open source (New BSD License) project supported
by the Outercurve Foundation
Framework for creating shared components for
ASP.NET applications and extensions
At this time, primarily a highly customizable CMS
platform built using ASP.NET MVC
![Page 14: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/14.jpg)
Orchard Glossary - Content
Content Item
Content Type
Content Part
Content Field
> Single piece of content (pages, posts, etc.)
> Classes of content items (posts, products)
Reusable behaviors >(tags, ratings,
comments)
Information about a part >
(product SKU, weight, etc.)
![Page 15: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/15.jpg)
Orchard Glossary – Modules
Module
Feature
Custom extensions grouped under a
single folder >
< Logical grouping of functionality that can be enabled or disabled
![Page 16: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/16.jpg)
Orchard Glossary - UI
Theme
Layout
Template
Shape
Placement
Zones
Widgets
Layer
> Packaged look and feel for an Orchard site
> Defines the zones for content insertion
> HTML placeholder for content
> Information for rendering a template
> Define what shapes go into what zones
Parts of layouts that may contain widgets >
UI parts inserted into all pages >
Group of widgets activated by a rule >
![Page 17: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/17.jpg)
SecurityCustomizable, built in
roles• Has full control over the site's settings and contentsAdministrator
• Does not create content but edit and publish content created by authorsEditor
• Validates user-created contents such as commentsModerator
• Writes and publishes his own contentAuthor
• Writes content but does not necessarily have the rights to publish itContributor
• An unknown user, someone who hasn't logged inAnonymous
• Any user who has logged inAuthenticated
![Page 18: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/18.jpg)
Development
•Similar to an MVC filter. Code that executes for specific events of the request life-cycleHandler
•Similar to MVC Controllers. Act on the level of a content part. Prepare shapes for rendering and handle admin post-backsDrivers•The part class and possibly a view modelModel•Description of operations to execute during module installationMigration
![Page 19: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/19.jpg)
Installing Orchard Microsoft Web Platform Installer Microsoft WebMatrix Clone the Mercurial Repository
o Create IIS vdir or site pointing to Orchard.Web Download the zip file
o Extract fileso Create IIS vdir or site pointing to “Orchard” directory in
zipo Application pool should be .NET 4.0 and Integratedo Browse to site to begin customizationo Select an Orchard recipe
![Page 20: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/20.jpg)
DemoInstalling Orchard
![Page 21: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/21.jpg)
Customizing Orchard
Themes and Modules
![Page 22: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/22.jpg)
Orchard Command Line
Orchard.exe located in the \bin directory under the root of an Orchard site
May be used to perform many of the tasks available in the admin UI (dashboard), such as:o feature disable <feature-name-1> ... <feature-name-n>o feature enable <feature-name-1> ... <feature-name-n>o package create <extensionName> <path>o package install <packageId> <location> /Version:<version>o user create /UserName:<username> /Password:<password>
/Email:<email>
![Page 23: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/23.jpg)
Code Generation Orchard.CodeGeneration feature provides command-
line tools for customizing Orchard web siteso feature enable Orchard.CodeGenerationo Also may be installed/enabled via admin dashboard
Create a new themeo codegen theme CodeCampNYC
Create a new moduleo codegen module CodeCampLocations
/IncludeInSolution:true Create a data migration
o codegen module CodeCampLocations Create a new controller
o codegen controller CodeCampLocations Places
user create /UserName:<username> /Password:<password> /Email:<email>
![Page 24: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/24.jpg)
Creating a Theme codegen theme Circa1997 Browse to the admin dashboard and set to
current theme Theme will appear in solution under Themes
project Edit Theme.txt
![Page 25: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/25.jpg)
DemoCreating a Theme
![Page 26: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/26.jpg)
Creating a Module codegen module Lolcats.Caption codegen datamigration Lolcats.Caption feature enable Lolcats.Caption
![Page 27: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/27.jpg)
DemoCreating a Module
![Page 28: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/28.jpg)
In DepthLinkedIn.Profile
![Page 29: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/29.jpg)
Links http://www.orchardproject.net http://www.codeplex.com/orchard http://hg01.codeplex.com/orchard http://www.showorchard.com http://twitter.com/codevoyeur http://linkedin.com/in/johnzablocki http://bitbucket.com/johnzablocki http://about.me/johnzablocki
![Page 30: John C. Zablocki Development Manager, HealthcareSource Organizer, Beantown ALT.NET Code Camp NYC 2011.2 2011-10-01](https://reader036.vdocuments.site/reader036/viewer/2022062714/56649d625503460f94a44245/html5/thumbnails/30.jpg)
Questions?