Recent Posts and Articles
- Status: Sipke is still working on the Layouts feature, Piotr refactored ICacheService to be more generic, Redis cache module had a few changes/fixes, Piotr is working on IIS-integrated background tasks, Orchard.Cache is modified by Lombiq to use the .NET MemoryCache instead of HTTP cache, Identity is now fixed for content items to match one identity instead of all of them by Bertrand (see his blogpost on the topic), Stanley added a feature for filtering content per user for the TagCloud, Brett extended Orchard.OutputCache so that authenticated requests can be cached too.
- To see the continuous builds and their results for the Orchard source, visit http://teamcity.codebetter.com and log in as guest.
- Abhishek will present at a workshop in Mumbai about Orchard.
- Demo by Zoltán - Tidy Orchard Development Toolkit: an Orchard module that makes it possible to separate your own modules and themes from the original Orchard source. This way you can store the Orchard source you're working with in one central place and use it for different projects.
- A related matter is that in 2.0, some changes will (hopefully) be made to make it easier to work with the Orchard source as a sole developer and in a team too, but the details are still in question.
- Demo by Sipke - content rollback: AuditTrail now provides an action to rollback a content item to a previous state.
- Sébastien's idea to enhance Background Tasks: Background Task Groups. Adding an Attribute defining the group to your Background Task would make it run in that group to separate BGTasks preventing certain tasks blocking others. BGTaskGroups' run intervals to be stored in HostComponents.config.
- Status: Projection Pages are now Listable by default, Nick and Sébastien are working on their feature branches, TaxonomyService is refactored and contains API-documentation, the MissingSettingsBanner for Email settings was causing a performance bug in OutputCache which is now fixed.
- Stanley was given write access to the Orchard repository, congrats!
- Demo by Sipke - updates to Dynamic Forms: client-side validation support for fields is several ways (integrated wit MVC validation). We had a long discussion regarding possible changes and improvements.
- Demo by Benedek: a PowerShell script (soon to be open-sourced as part of the Orchard Dojo Library) to check the consistency between the content of .csproj files and the file system both ways.
- Announcement by Benedek: the translations of the Gallery themes and modules are moved to a different project on Crowdin.
- Demo by Zoltán - Orchard beginner walk-through on TryOrchard: the "Try Orchard!" sites on DotNest now display tips and a walk-through aimed at beginners with Orchard on the front-end and the Dashboard.
- The new theme for the Orchard community sites are still work-in-progress by Shaun.
There’s a number of differences between regular MVC controllers and WebAPI controllers that make the latter much more suitable to building APIs: they are REST-centric, they can negotiate the format of the answer, etc. Implementing WebAPI controllers in Orchard is really simple. First, you need a route, and that will be the subject of this post.
Whenever you need to get the URL of a ASP.NET MVC action, you should use Url.Action (where URL is an instance of UrlHelper), and never hard-code the URL. This way, the URL is dynamically constructed from the available information in the Url.Action parameters and in the route table. If the route is changed, the results of the Url.Action call will change accordingly, and everything will continue to work. The same principles, of course, apply to WebAPI actions.
There are rare cases where you’ll want to be able to inject instances of classes that don’t implement IDependency. One example of this can be found in MvcModule in Orchard.Framework, which also provides a good example of how to do it. The idea is to derive from Module, and override the Load method to register factories for the types you want to expose:
Many times when we choose the platform for our customers we generally do not put web applications on a CMS because it is too much overhead for a web application. Vice versa, you would not want to build out a custom CMS on the MVC platform when ones already exists for you website. So how do we get the best of both worlds?
MiniProfiler is especially good at showing you the select n+1 problems in your Orchard applications. For some reason, however, it is only active on the front-end. If you have to debug a performance issue in the dashboard, you’re out of luck. Fortunately, the limitation is entirely arbitrary, easy to find, and easy to remove.
- Sébastien fixed a nasty issue in Taxonomies with Terms created from code (#20959), refactored TaxonomyService, removed a few unused methods, aaand: added in-line documentation to ITaxonomyService!
- We reviewed a PR, then triaged a bunch of issues (we're now in the middle of March).