Contents with the Development Tag Node
-
4 ways to display something from your module nested within a page in Orchard Core - Orchard Nuggets
Development, Orchard Nuggets, Module, Widget, Liquid, Click to deploy, Update Content Workflow Task - This week in Orchard (17/04/2020)A common question during Orchard Core development, something that came up again recently, is how to display something within the context of an Orchard page when that piece of data comes from your module? How can you "inject" something into the Orchard layout when you want to display e.g. a list of products retrieved from an external API? There are a couple of ways to do this depending on what exactly you need. All are fairly straightforward so let's see a quick rundown!
-
Writing an Orchard Owin middleware
Development, OwinSo you heard about how fancy Owin is, with all of its loosely-coupled thingies? Well, it's now in Orchard: as you may have heard on this week's Community Meeting, you can now write Owin Middlewares in the Orchard-y way. Let's see how!
-
Forum favourites: records, database indices and about the necessity of drivers
Community resource, Development, Forum favourites, Content partForum topics from the Orchard discussion board that we found interesting:
- "Record persisting advices": checklist if you want to store something in a low-level (non-content part) record
- "Adding empty part to type fails": always create a driver for your part
- "Records only in Models namespace: good?": remember to put your records under the Models namespace
- "Indices with SchemaBuilder": you can add database indices from migrations, but only from AlterTable
-
Forum favourites: model editors with shapes, accessing a shape's generated html and accessing content fields programmatically
Community resource, Development, Forum favourites, Content field, ShapeForum topics from the Orchard discussion board that we found interesting:
- "Passing my own data types to a view": using form field html helpers with dynamic models and in alternates defined with the shape attribute
- "Dynamically built html with Clay": capturing the generated html coming from a shape
- "How to access fields of a content item again?": ways of accessing a content field's value by using dynamic or statically typed extension methods
-
Dependencies for themes
Community resource, Development, ThemeIt's not obvious that themes can have dependencies in the same way modules do - here's a blog post about this.
-
Some clarification regarding injected dependencies
Community resource, Development, IDependency, Event handlers, Event bus, ModuleDependency injection through constructor injection is a technique used throughout Orchard: you can't really write an Orchard module without injecting some services. Dependency inection and the special kind of dependencies, event handlers are explained in the Orchard Docs.
-
A small Orchard API reference: Orchard Cheatsheet
Community resource, Development, APIThe Orchard Cheatsheet is a nice little API reference for some lesser known objects, made by Orchard's lead developer, Sebastien Ros. The cheatsheet's list only contains elements of the API that are accessible from (sometimes very specific) shape templates (well, ExtensionDescriptor seems to be an exception), but e.g. WorkContext is something you definitely encounter elsewhere too.
-
Orchard extensibility explained - aka why Orchard's flexible content model rocks
Community resource, Development, Content model, APIBertrand Le Roy's not-so-recent article "Orchard Extensibility" in MSDN Magazine explains the various aspects of - surprise - extending Orchard. The article mainly covers Orchard's content model, its concepts and flexibility: something we all love in Orchard. Bertrand also lists some other important parts of the Orchard API, all worth knowing.
-
"Writing an Orchard Webshop Module from scratch" module development tutorial
Community resource, Tutorial, Development"Writing an Orchard Webshop Module from scratch" is an excellent, 11-part (planned for 15) tutorial on Orchard module development by Sipke Schoorstra. Everyone who has ever written at least a short tutorial will feel what amount of work such a series contains: not surprisingly it's well worth reading, even for ones already somewhat familiar with Orchard module development.
-
Content part development checklist
Community resource, DevelopmentA nice checklist about what not to forget when creating a content part at Orchard Hungary.