Content types

The 'C' in CMS means "content" so it would be fair to say that content is anything that the CMS manages. More precisely, content is everything in the site that has any information in it. For example, a page, a blog post, a comment, a product or your company's logo are identifiable individual pieces of content, i.e. content items.

Content items are instances of content types. Said differently, content types are classes of content items. We said in the previous section that examples of content items are pages, blog posts, and products. Those three examples also describe three content types: page, blog post and product. In other words what we call a blog post is just an item of type blog post.

There are a number of built in content types that you can use as building blocks when creating your site. However, you would normally create at least some custom content types that map to your specific needs.

The anatomy of Lemoon content types

A content type is a class that inherits from the Mindroute.Core.Model.Content class or from a class that in turn inherites from that class. The Mindroute.Core.Model.Content class defines all common fields like Title, Permalink, CreatedBy etc. etc.

Content types are created as normal classes directly in your project or referenced from a separate project or class library. When a Lemoon application starts up it will automatically find all referenced extensions including content types.

Content types are composed of a number of fields. These can be decorated with attributes that describe how the field should be displayed and edited.

Example 4: Example content type with some validation. The IntValue property has a range attribute restricting the input to a number between 1 and 10. The StringValue property has a string length attribute limiting the input to 10 characters.

About us

Formpipe develops ECM products and solutions for structuring information and supplies them to major companies, authorities and organizations. ECM products help organizations to capture, manage and distribute information, and to place it in context. The company´s software helps improve efficiency, cut costs and reduce risk exposure.

Formpipe was founded in 2004 and has offices in Stockholm, Uppsala and Linköping in Sweden, and in Copenhagen, Denmark. The Formpipe share is listed on NASDAQ OMX Nordic, Small Cap.