Developer Skywalker Software Development Module Development Sipke Schoorstra
Orchard Harvest Conference – Amsterdam 2013 Module Development Writing Unit Tests Packaging & Publishing Creating & Using Recipes Session Overview
Orchard Harvest Conference – Amsterdam 2013 Orchard: Enabler of Modules Modules are comparable to MVC Areas Extend Orchard Create Web Application Specific Functionality Module Development
Developing The Placeholder Module Functional Requirements – Place content items using the Placeholder Widget – Only content items with the “PlaceablePart” can be placed – Placeable content items have a technical name so they can be referenced by code and helpers – Placeable content can be rendered with a configurable display type – Theme developers should be able to render named content items using a helper Technical Requirements – Develop a PlaceholderPart & PlaceablePart – Create a PlaceholderWidget using the PlaceholderPart – Create an HTML Helper that renders a named content item
Orchard Harvest Conference – Amsterdam 2013 Unit Tests: Specific code units (methods) Integration Tests: Units working together Acceptance Tests: User stories Writing Tests
Orchard Harvest Conference – Amsterdam 2013 Package Create Upload to Orchard Gallery Packaging & Publishing
Orchard Harvest Conference – Amsterdam 2013 Download Modules Enable / Disable Features Metadata: Content Types & Parts Data: Content Items Settings Commands Custom Steps Execute Recipes before Setup Execute Recipes after Setup Recipes