Recent Posts and Articles
If your hosted environment does not give you a staging site and the means to swap it easily with the production environment like Azure Cloud Services do, or if you don’t have a staging database, or if you just need to take your site offline for the public while you perform data updates in the admin, you may be wondering what solutions you have, if any.
IIS has an app_offline.htm feature that you can use, that will serve a static page for all requests but that’s rather brutal as it does not just take the site offline for your users, it also does so for you. While that file exists, you can do absolutely nothing with your site. You cannot access the admin, you cannot preview your changes, nothing. So when you flip the switch back, it’s anyone’s guess whether the changes you blindly made actually work, even if they did on your machine…
We need a better solution. Well, I happen to have one...
In this part, we will be implementing the following:
- Two IParserEngine classes: SimpleTextParserEngine and RazorParserEngine;
- Site scope settings to configure which parser to use by default;
- Content type/part settings to allow the user to override the site level settings abd configure which parser to use on a per content type level basis;
- Improve the template editing experience with CodeMirror.
This is maybe the first question everybody starting with Orchard development asks. I.e. what should I do to have a Visual Studio solution that I can run and play with and use to start writing an Orchard module or theme? Here are the first steps.
When working in a team you naturally need source control but it's strongly advised even if you develop individually. So how to do this when working with Orchard? There are a few good options.
There is a new Shape Link in Orchard for adding custom shapes in Orchard Menus and Navigation. This will be released as a part of Orchard CMS 1.7, but I thought I would add it to my Orchard Tutorials now so Orchard Web Developers can prepare for it. This is all possible thanks to the pluggable navigation released in Orchard 1.5. I talked about the pluggable navigation some time ago in Dynamically Injecting Menu Items in Orchard CMS and Orchard Menus and Navigation for Online Store and E-Commerce Website.
Sometimes, when for example you're writing a Widget, you come across the need to know what the "current" content item being displayed is.
By "current", I mean the content item being routed to via the url. For example, if the url is http://mysite.com/about- us, a content item with the display alias "about-us" will be rendered.
In this post we will see how we can find out what content item is being rendered based on the current url.
Due to a bad recording setting, audio was not captured this week. We apologize for the inconvenience. We are still providing the link to the video, in case you want to check out the silent demos, but we won't embed it this week.
- Should have a doc topic on the query API. Sébastien also wants to revisit the HQL API.
- Sipke: showed part descriptions. This will go into core once Sipke has made some small adjustments such as moving description under part title in add part screen.
- Ylan suggested a hint setting to complement that, that would appear in the item editor. Could be tried as a module first, but would be better implemented once admin shapes are implemented and integrated.
- Sipke showed changes to content type editor: content types promoted to top-level admin menu item, added tabs for stereotypes. The content parts menu item should become a tab under content types. Stereotypes should not be tabs. We will list the stereotype next to the type name, and add a filter drop-down. Content types will be removed from the Content admin screen. Will show next week.
- Sipke will also remove the redirect to the list of types on content type save.
- Sébastien: transaction manager replaced by nHibernate transactions, with autoflush on. This a very impactful change, so please try this at home, and file bugs.
- Theming comments improved and made considerably easier.
- Demo: C# scripting, and script validation. This enables the administrator to write custom server-side validation code. Using Mono. Very similar to what Zoltán and Benedek built a while ago. Need to add restriction to site owner.
- Demo: Media Processing is in core now. It's been refactored since last time, and uses ImageResizer by default instead of GDI.
- Demo: multiple search index support. Benedek suggests having the configuration of which types get indexed in the Indexes admin screen rather than on each type's editor.
- Demo: Recipes tab under Modules enables execution of recipes at any time. Site owner required to execute recipes of course.
- Ylan announced http://orchardharvest.org for Harvest in May in Amsterdam. There is a poll, a stay informed form, and a talk submission form.
- Triage: 117 proposed before triage, 96 after. 121 active for 1.7.