Our blog contains the activity stream of Orchard Dojo: general news, new resources or tutorials are announced here.

Featured tags

IIS
API
All tags >

Orchard Harvest conference, day 2

Just as on the first day we're reporting in live from the 2017 Orchard Harvest conference! This blogpost will be updated as we go, so make sure to check back! Bertrand is doing the same thing again, so make sure to check out his blog for updates too. Antoine again as well, so also check out his blog. Theming in Orchard Core CMS by Steve Taylor Steve is from Avastec and works extensively with client-side technologies. He'll live code a new Orchard Core theme based on the Masonic Wordpress theme. A sneak peek into the new Orchard theming, also the casual use of Razor Tag Helpers for including resources, displaying a menu and a zone. The theme makes use of a Gulp pipeline for asset building. A sneak peek into the database storage format of Orchard Core and creating theme settings. Highway to the pager zone. (Sorry. Hate Salute Benedek for the joke.) Topic of the day: Statue of Liberty. We should have a Statue of Orchard. It could be a large monolith. (That, when you look closer, is built of beautifully crafted small, loosely coupled bricks.) Setting up indexing and adding a search box. Quite similar to Orchard 1.x. Taking a look at some of the familiar Orchard concepts from the admin to the extent needed for a theming demo: managing content types, adding menu items, widgets... If you use a lot of stuff the cool kids do like Angular and Knockout there's something for you. Present and future of Localization in Orchard by Benedek Farkas Benedek is from Lombiq, leading the development of Orchard client-projects and contributing bugfixes. He also asked us to take pictures. Lombiq does a lot of things with Orchard, so we'll refrain from listing those 96 things here, you can see for yourself. Benedek does a lot of things with Orchard too, including catering for the translation packages. How is "orchard" in various languages? Turns out probably we're best off with the English one. Word of the day: eltöredezettségmentesítőtlenítetthetetlenségtelenítőtlenkedhetnétek. You should only drink as long as you can pronounce this. When in doubt, use T-strings: Wrapping your user-facing labels into T() is the bare minimum. But it's easy to defeat the purpose, so here are some tips. Extracting T-strings from code with Vandelay Industries. Unfortunately the module is only compatible with Orchard 1.6, so please personally and repeatedly nudge Bertrand to update it. He'll appreciate the moral support. The module supports 1.10.x. Translating UI strings on Crowdin, for built-in and third-party modules. Klingons are really behind on translating Orchard. Head over to Crowdin and contribute some translation, Orchard needs you! Translating content items on the example of the Atlantis Programs & Pedalheads website. Also including some synchronization features to sync some data from the master item to the localized versions. Similar improvements are coming to Orchard itself too. Localizing Taxonomies and content fields, the new way. Design notes on improving localization. Building Client-side Apps and Components for Orchard by Daniel Stolt Daniel from IDeliverable returns. What's a client-side component? Shifting from the server-side to the client side. When do you want to use a client-side component? Mainly if you want a modern UX without page reloads. Various ways to create such components in Orchard, the simplest being a Layout Snippet. Demo of a component displaying stock market information. You wouldn't want that delay page load. Utilizing Orchard's Gulp pipeline for client-side assets. Do we put output files into source control? It depends, but preferably not. Configuring a client-side asset build pipeline with Gulp. If you don't know Browserify, check it out, it's good for you. Angular routing and how to combine it with Orchard's routing. Ways of runtime module loading. It will be awesome with HTTP 2. YesSql, what's that and why do I like it? by Sebastien Ros An ad-hoc, unplanned session by Sebastien about YesSql. It's a document database layer using SQL as the data store, so you get the best of both worlds: A trusted, tested storage with a fancy flexible data model. YesSql is also the data layer of Orchard Core. The plural of "index" is "indices". Learn this and you can look educated among your peers. Bonus: Do the same for "medium" and "matrix". Demo of the various use-cases you'd expect from such a data access layer by looking at the tests. Interesting clever querying and indexing concepts. What's next for .NET Core and C#? by Bertrand Le Roy Bertrand from Microsoft gives some insights into the future as we know it. It's multi-platform, which is a good thing. You'll need VS 2017 if you're using VS, which is bad thing. Project.json is dead and csproj is back, which is kind of a mixed thing. But this csproj is not the same csproj! One project system across all platforms: Now a bearded guy with a Linux laptop, a hipster with a MacBook and a cool engineer with an awesome Windows laptop can walk into a bar and be one .NET development team, not the start of a joke. We've seen some XML templates, but since it's XML no one will ever want to look at it, so whatevs. There's the One SDK running behind all IDEs, which is awesome. The .NET command line got even better, so you can feel like a Hollywood hacker. Even the Orchard command line could be part of the .NET CLI. The solution file format hasn't changed, which is sad. Introducing .NET Standard: one .NET API to use across all platforms, when writing .NET Framework, .NET Core or Xamarin apps. .NET Standard 2.0 will contain all the APIs .NET Framework has (minus the Windows-specific stuff). See for yourself on https://apisof.net/. What's up with C#? Everybody uses C# and everybody loves C#. No further questions. Bertrand just showed an array initialization that could be the prime exhibit in the Museum of Strange Brace Styles. And remember there's a thing called Pico. What's new in C# 7? Here's a recap. Pattern matching can be familiar from functional languages, but it has always long been a part of hardware description languages (and the wider concept in logic circuit design). And with Hastlayer you can create hardware from .NET! The holy trinity of C# language principles: expressiveness, convenience, performance, safety. Well, this was four. Some exotic things possibly coming up with C# 8. Orchard Core CMS by Sebastien Ros The goals of Orchard Core are like new year's resolutions you actually can keep: be worse at everything. Just kidding. Major changes: Built on ASP.NET Core, document-oriented storage (with YesSql, see above). The admin theme uses Bootstrap and there is no bug. The admin menu is now also a standard menu, so it's extensible in a better way. You can also configure the admin theme as easily as the frontend theme, neat! The basic content editing UI is in principle the same as in Orchard 1.x so you won't be confused. Content parts can be attached to a content type in multiple instances. Various things have changed a bit or a lot (even if not too apparent from the UI): Blogs use the Lists feature (so blogs are just a Lists configuration, not a feature written from scratch), widget layer rules can contain C# (and widgets can be dragged between zones from the UI)... New content type: Flows. These are basically widget pages, plus more. Recipes are now in JSON, not XML, and can use dynamic placeholders evaluated during cook time. The thing is fast, even without caching. >2000 request/s on a dev machine while debugging fast. And uses much less memory too. See the roadmap to get an idea of when Orchard Core will be ready. Panel with Daniel Stolt, Sipke Schoorstra and Zoltán Lehóczky Merging localization-related changes: Will mostly be done on dev, because breaking changes are allowed there. What about the new frontend theme? It's on Ryan Drew Bernett's branch (or maybe in a branch in the official repo). The design goals are mostly satisfied, but theme settings are not implemented. Are there any goals to make Orchard competitive against e.g. Wordpress? More themes and out-of-the-box site solutions would make content editors happy. That's true, but Wordpress is just a blog engine, even a lot of Orchard devs use Wordpress for their blogs. Orchard is mostly targeted at businesses.

Orchard Harvest conference, day 1

We're reporting in live from the 2017 Orchard Harvest conference! This blogpost will be updated as we go, so make sure to check back! Bertrand is doing the same thing, so make sure to check out his blog for updates too. Aaand, Antoine too, so also check out his blog. Keynote by Sebastien Ros Not everybody has badges because Sebastien failed Mail Merge, or Mail Merge failed Sebastien. Zoltán doesn't have a badge either :-(. Sebastien's always funny stand-up show starts, although he had a hard night after eating something bad. Let's see where all the attendees come from. It turns out, from a lot of countries and US states. Sebastien hands out some "choc-lates" to speakers. Now you're sorry you won't have a session! Public shaming of those who didn't want to be speakers! Public praise of those who're active in the community. Sebastien whining about organizing the conference. But we all know he just loves it. And he sounds like a parent with some little kids. Oh wait... Word of the day: "websiting". We all do Orchard websiting apparently. Apparently "Lombiq Technologies Ltd." is a long company name. So we'll just go with LMBQ from now on. There will be 4 ladies on the conference, which is maybe a record? Oh, and BTW we'll have some stuff about Orchard too. Outside In: Using external data with Orchard by Jorge Agraz Jorge is from Onestop, a full service ecommerce agency. They developed their platform on Orchard where they utilize Orchard's flexibility and content model. A CMS was needed to get engineers out of content management. But sometimes Orchard is hard to utilize or an overkill for their use-case. Product catalog information comes from an external system which is queried via API calls. They have "actor" and "carrier" shapes: platform-level business logic templates vs theme-level structural ones. See Jorge's session from last year. First the Onestop platform used widgets to provide pieces of functionaly for ecommerce sites, now mostly Layout Elements and content types for commerce pages. We now know what the address of the Onestop VPN is, but won't tell you here! One of the big points of the latest version of the platform is to reduce the number of shape templates needed for new sites: now just 6. A demo of how product pages are built with content parts. But as usual during demos, Visual Studio freezes :-). It seems Onestop discovered Dynamic Pages ;-). When Output Cache Just Isn't Enough by Chris Payne and Daniel Stolt Or "Make Output Cache Great Again" :-). They're from IDeliverable and developed IDeliverable.Donuts to handle various caching needs. A common scenario is personalized output, like having the user's name somewhere. This can be cached by keeping token-like placeholders and caching the output with that, evaluating for each request. A demo of how such placholders work. You can also see how the recent changes in the Output Cache module fit into this. Pro tip from Daniel: if you're presenting together with an English guy, use a Swedish keyboard layout. And Dvorak. In this talk we see images of cigars, in the last session there was a shoe with a cigar as the heel. Did we miss that the cigar is this conference's theme? Chris started a sentence with "Donut ships with..." and now I can't stop thinking of donut ships. A demo of the Item Level Cache part, which provides similar caching options but on the level of a single content item, not the whole page. This video apparently has something to do with caching. A demo of how cache entries can be reused across multiple pages. A demo of prerendering some items: even the first user gets a cached version, not first-time penalty. The drawback is that since the context is the request is not there, caching options are limited. What's new in ASP.NET MVC Core 2.0 by N. Taylor Mullen Hands up if you don't know ASP.NET MVC Core 1.0 either! Taylor is from Microsoft from the Razor team. The talk will be the better the more active the audience is. Remember, this is the first talk after lunch. So... Introducing Razor Pages: a bit like ASP.NET Web Pages, but better, i.e. "best of MVC with less ceremony". If you're a borderline PHP developer, do we have some transitional technology for you! Anatomy of a web application. Not many files. Demo of the basics of app configuration and stuff. VS 2017 can now edit csproj files without having to unload the project first. The future has arrived. Taylor is into League of Legends and Pokemon Go. Just sayin'. Demo of the difference between a standard MVC app and a Razor Pages app. The latter is just add cshtml file, run. No controller, action, Views folder. You can (or rather will be able to in the next version) embed logic otherwise contained in controllers. Looks very neat until you get PHP flashbacks. Just casually used C# 6 string interpolation. Well, since Roslyn the objectively best programming language in the known universe gets better even faster. Razor Pages is not obsolating MVC, it's another way to structure your app. Might help newcomers start with ASP.NET. Wonder if this could be used in an Orchard module? Razor tooling is being redesigned to decouple it from VS, allow extensibility and be able to provide an overall better developer experience like during refactoring. E.g. adding new Razor directives it's just a few lines of code. Scaling Orchard by Rob King Rob is a technical lead at Bede Gaming. They provide an online gaming platform for gambling brands in the UK and now internationally. They started their platform using PHP by writing a custom CMS, then migrated to using .NET and Orchard. "I'll talk about Mecca". Lombiq guys got Mecca flashbacks. (Because of this.) Their platform had a huge network of dependencies: disabling a feature can disable dozens of others. So they refactored and moved all common central service interface to a common module. Still not perfect, so the next step was to factor those out to smaller projects containing interfaces. To visualize the dependency hierarchy Rob created RJK.FeatureDependencies. Mecca Bingo needs a multi-node setup (12 servers by default) and extensive cashing to handle large loads (a recent peak was 5,4k requests per minute). Like layer rule caching with a custom Redis-using implementation. Output caching is handled with Redis too on top of a local in-memory cache. Scheduled task caused deadlocks in production due to tasks being wrongly rescheduled from multiple nodes. The ultimate solution was to move task execution out to Hangfire (after implementing a workaround of only letting tasks be executed on a single node). What is Orchard Core SaaS Framework? by Nick Mayne Nick has worked on Orchard Core, the new ASP.NET Core-compatible version of Orchard extensively. Demo of starting an Orchard application from scratch by creating and configuring a host project for it, then adding a module with MVC to it. Demo of configuring extension loading: Custom extension locations, custom manifest definitions. Demo of configuring multi-tenancy. Demo of using Nancy instead of MVC.