Orchard & Umbraco - Creating Content

Overview

In this article we're going to continue our series in looking at the differences between Orchard and Umbraco. Today we're going to be looking at creating content.

This is from a series in Orchard and Umbraco, the overview can be found here.

Creating content in Orchard

As I mentioned in my last post about admin systema I pointed out that the first most option in the navigation is for creating content, and here we're going to go through the workflow of creating content. First off we'll create a new page

Orchard new link

So this will create a new piece of content using the Content Type of Page, which then takes us to the following editing screen:

Orchard new page

This is a full list of all the properties which I can edit for this page, I can put in a title, I can set the URL (which is auto-generated from the page title by stripping spaces and other special characters). Theres then a nice big text editor which uses TinyMCE as the WYSIWYG editor. Lastly there's an option to set the tags for the page, and finally some options regarding to publish.

I can't really fault it, the only thing that confuses me is the Tags option, I'm not exactly sure why I would want this on just any page, but yes, you can remove.

I'd say that it's because I've spoiled by Umbraco as when you create links (or add media) using the Orchard version of TinyMCE you have to enter the URLs yourself. This is a bit of an annoyance when you don't know the paths of what you want to link to directly. I also am not sure what impact this would have when you modify URLs, I haven't dug into that, but I'd expect that it'd cause links to break.

But that said I actually quite like the ability to full-screen the TinyMCE instance, this is really good if you're working with large content blocks.

Once finished I click save and unsurprisingly my new page 404's:

Orchard 404

Something I noticed when trying to navigate to this page I noticed that there wasn't any link on the create page, I'm not sure if I'm just blind or it's actually not there. Personally I think this would be really useful, it makes it easy to get to your new page.

Also, I can't see to find any kind of preview function in Orchard pages.

Let's go back and publish a page, you can publish the page right now or set up a scheduled publish of the content. I'm going to publish it now as that's what I want done, and now our page is live!

Orchard new page

So I chose to have this page added to the navigation, put some basic information in and that is how it looks. Obviously the Tags seems a bit silly, but if you remove them nothing around it will be displayed for it.

And that's it, we've built a page in Orchard!

Creating content in Umbraco

With Umbraco there is two ways which you can create new content, there's a link in the upper left, or you can do it from the context menu of the tree:

Umbraco create

I'll admit that I've never used the upper left create button, I've always found it makes a lot more sense to create it in place from the content tree, so what's what I'm doing. Choosing create will then give you a new dialog, allowing you to enter the page title and select the page type:

Umbraco create part 2

This is a bit more of an involved process than Orchard, but it does have a purpose. In my admin system post I mentioned that Umbraco seems to have more of a concept of hierarchy in the pages, and this dialog is used to place restrictions on what Document Types can be placed where in the site structure. I see this as a really useful feature, it allows you to create very special site layouts by putting restrictions around your content editors without their knowledge.

Once you have a new page you'll see that there's a difference between Orchard and Umbraco again. Unlike Orchards full view of what is going able to be edited Umbraco uses a tabbed UI:

Umbraco tabs

Umbraco tabs

I can't decide what I prefer, the Umbraco or the Orchard UI, both have pros and cons, and both make sense in the context of their parent UI. It's up to you to decide which is your preference.

Umbraco also uses the TinyMCE editor, but it's a slightly customized version of it. With Umbraco the media and link dialogs allow you to interact with the CMS and select existing pages or media items which have been uploaded in the system, you don't have to remember the URLs.

Once I've populated all my content I then save the page and then I want to view it, like I did in Orchard. Unlike Orchard Umbraco has a preview feature (and if you've worked with older version of Umbraco there is a limit with the preview engine and XSLT, but that's fully resolved now):

Preview link

This gives a view of the page, with a not-so-friendly URL (it's the ID of the page), and a nice banner to indicate that it's in preview mode:

Previewed page

Sweet, I can view my content before going live, and this is a really useful feature, content editors like being able to see what their new page will look like without it going live.

Once you save and publish you'll be able to navigate to the full URL as well. The URL is on the General Properties tab as well, so you can click on it and navigate straight to the page. Again a small feature but it's really handy.

Conclusion

To wrap up we've looked at what it's like to create a page in each system. Umbraco is a bit more involved a process, and it gives you a lot of flexibility-by-restrictions, where as Orchard is less restricted about what it allows you to do.

There's a few small things about Orchard I didn't like, the lack of easy way to open a page from the edit screen, and the missing preview feature (or at least, I didn't find it!). But keep in mind Orchard is only v1, I expect that preview would come in future versions, so keep an eye out for it.

umbracoorchardorchardcms
Posted by: Aaron Powell
Last revised: 17 Jan, 2011 09:36 PM History

Comments

Keith Dancey
Keith Dancey
27 Jan, 2011 09:01 AM

Aaron, its easy to change the config of TinyMCE in Orchard so you can customise it the way you want to. There is also an extension available in TinyMCE called Imagemanager, unfortunately you need to part with a small amount of cash but its worth it. Imagemanager allows you to select and upload media via an explorer interface, well worth the small investment.

27 Jan, 2011 10:53 AM

Sweet, I was sure there had to be some good configuration points :D

R. Hubert
R. Hubert
04 Feb, 2011 09:42 AM

Umbraco's architecture is currently superior. You can do anything with Umbraco, anything, and make it look easy.

And why is this site called LINQ to fail? Hmmm.

R

04 Feb, 2011 10:52 PM

Why not :P

25 Feb, 2011 06:59 AM

You forgot that Umbraco also has the "edit in canvas" mode which basically overlays the editable regions with the editors while in preview mode. I make individual richtext editor data types to match the editable regions so if the users wants to hit up edit in canvas tinymce won't blow the page up when editing is enabled for the region.

I think configuring TinyMCE is pretty much the same only Umbraco adds access to the TinyMCE init and adding plugins through a config file (tinyMceConfig.config).

Roland
Roland
22 Jan, 2011 12:06 PM

The example is focused on "How to create an About page". To me creating content is based on document types. I have just come across the Orchard's documentation article: Creating a custom field type (http://www.orchardproject.net/docs/Creating-a-custom-field-type.ashx).

Any body who has experience in Umbraco is gonna be scratching his head while reading the article. So much code to add a couple of custom fields? If it comes to implement complex stuff how can the typical user get by?

I am not an expert at Orchard. However making simple and standard things in a so convoluted way is insane. I think that v2.0 must be focused on usability.

22 Jan, 2011 09:59 PM

I hope to be covering custom content types and field types in future posts.

This post wasn't meant to cover that stuff, it was just about the editing experience.

blog comments powered by Disqus