70 likes | 230 Views
Module Development. Sipke Schoorstra. Session Overview. Module Development Writing Unit Tests Packaging & Publishing Creating & Using Recipes. Module Development. Orchard: Enabler of Modules Modules are comparable to MVC Areas Extend Orchard Create Web Application Specific Functionality.
E N D
Module Development Sipke Schoorstra
Session Overview • Module Development • Writing Unit Tests • Packaging & Publishing • Creating & Using Recipes
Module Development • Orchard: Enabler of Modules • Modules are comparable to MVC Areas • Extend Orchard • Create Web Application Specific Functionality
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
Writing Tests • Unit Tests: Specific code units (methods) • Integration Tests: Units working together • Acceptance Tests: User stories
Packaging & Publishing • Package Create <Module> <Output> • Upload to Orchard Gallery
Recipes • Download Modules • Enable / Disable Features • Metadata: Content Types & Parts • Data: Content Items • Settings • Commands • Custom Steps • Execute Recipes before Setup • Execute Recipes after Setup