Orchard Blogs has a new blog posts per page feature allowing you to adjust the number of Orchard Blog Posts per page separate from the site items per page feature. This new feature is in addition to another new feature I mentioned in my previous blog post: easily add Feedburner URL's to Orchard CMS via the RSS Feed Proxy URL Setting. Stay up-to-date on new Orchard CMS Features by subscribing to my Orchard blog, reading my Orchard Tutorials, or following me on Twitter and Google+.
Contents tagged with orchard-tutorials
Orchard blogs hasn't had good support for adding Feedburner URLs in replace of its own RSS Feed URLs. In the past I have used my own custom Feedburner Orchard Module and there is probably a module or two on the Orchard Gallery that do the same thing. Using an RSS feed proxy, like Feedburner, is a common practice for blogs, so it's nice to see this feature in new versions of Orchard CMS. Here is a quick Orchard Tutorial showing you the new Feed Proxy Url option when configuring and creating your new blog in Orchard CMS. In my case, I will be adding my RSS Feed Proxy URL for Feedburner: http://feeds.feedburner.com/davehayden.
Before you upgrade your Orchard Website to Orchard 1.8, I recommend you read the Orchard 1.8 Release Notes. There are some steps formatted in BOLD that clearly state you must assign the Administrator Role to your Orchard Super User Account before performing the upgrade. If you don't, you will get locked out of the dashboard and have to either 1) re-do the 1.8 upgrade again after performing the step or 2) gain access to the Orchard database and do a bit of manual hacking.
The Orchard Jobs Queue in Orchard 1.8 can be used to send email asynchronously. This is especially useful when sending email from custom forms that are submitted on your Orchard Website via Orchard Workflow. Enabling email to use the new Jobs Queue is as simple as selecting a Queued option in your Send Email Workflow Activity.
Here is a tip for all Orchard Developers. When you are building a ContentPart and ContentPartRecord during Orchard Module development, you may need to use the StringLengthMax Attribute on ContentPartRecord Properties to keep NHibernate from truncating strings when saving data to the SQL Server Database. If you don't, you will often see NHibernate errors in Orchard CMS log files mentioning string was too long and truncated. Unfortunately, this NHibernate error in Orchard keeps the ContentPart and Content Type from being saved and the only way to notice the problem is to view the Orchard log files.
I've been teaching Orchard development classes using an e-commerce website built using Orchard CMS. It's a feature-rich online store showcasing many techniques in building custom Orchard Modules and Widgets for e-commerce purposes. During the holidays I have been upgrading this website to leverage new features in Orchard 1.7, including the Media Library, Media Processing Module, and Workflow Module. I am also using new features in the upcoming Orchard 1.8 regarding Infoset. As I update this Orchard e-commerce example for the new year, I thought I would mention some insights about how new Orchard best practices have improved the website. First, I would like to discuss some of the positive improvements that have occurred through the use of the Media Library and Media Processing Modules.
I built a custom Orchard Module that displays a humans.txt file for Orchard Websites. I built it the same time I converted my Robots.txt Module to use Infoset for storing Content Part Data. The code is essentially identical, except the module responds to a request for humans.txt. Humans.txt is an interesting way to provide humans with information about the Orchard Website.
Easily override meta tags displayed by Orchard CMS by overriding the Metas Shape. ResourceManager in Orchard CMS keeps track of the meta tags in your website and displays them using the Metas Shape. You can override this shape in your Orchard Theme to remove certain meta tags, add meta tags, and filter meta tags. Although you will have to write a bit of Razor Code in your Orchard View, it is far simpler than creating an Orchard Module or modifying the Orchard Source Code.
I created a robots.txt Orchard CMS Module that leverages InfoSet in Orchard 1.8 for Content Parts. This alleviates the need for custom tables via SchemaBuilder.CreateTable, which can reduce the number of table joins, reduce the possibility of Select N+1 queries, increase Orchard performance, and eliminate extra noise in your Orchard code base and SQL Server database. I mentioned a couple of other modules that use Infoset, too, Smart App Banners and Live Chat Modules for Orchard CMS.
Just a friendly reminder to other Orchard Web Developers that the upcoming Orchard 1.8 will be running on Microsoft .NET 4.5 Framework, ASP.NET MVC 5, ASP.NET Web API 2, and Razor 3! I am converting numerous Orchard modules and building new modules using the new Orchard Source 1.x bits going forward to take advantages of these changes.