Predefined content subtypes

Lynicon provides a number of subtypes related to web development together with editor templates for these so you can use them in your content types conveniently.

ImageContains the information necessary for representing an image. The editor template provided for this links to the file editor or media library
Link Data for a simple html anchor link, just the url and the content text of the link
ImageLinkRepresents an image with an associated link
MinHtmlA data type which facilitates storage of html, and does not require Html.Raw() to render it.  The editor has very limited facilities: only strong, em and a tags are allowed, and the text is processed to be enclosed in one or a number of p tags; a newline creates a new p tag.
BbTextA data type which accepts the non-html BB Text tag language and converts it to html (no need to use Html.Raw). The editor is a simple text box.
MultilineAccepts BB Text tags and outputs html, the editor is a text area.
ReferenceA very important type which holds a reference to another content item.  The non-generic type can contain any type of content item. The generic type can contain just the type of content item provided as the type argument. This will also work with an interface, allowing any content type implementing the interface to be referenced.  The editor shows a drop down list of all available items. The Reference type has a Summary property which supplies the summary of the referenced item.
SwitchableSwitchable is another key content class.  Switchable is an abstract class and is inherited from to provide a property which can take values of different types.  This is done simply by adding a number of properties to the inheritor class: which of these is the 'actual' value of the switchable is indicated by the SelectedProperty.  The supplied editor template supports this behaviour of switching between different types.  By default, a radio button control is used for this, but you can use a SwitchableIconAttribute on all the properties to indicate a list of icons to use.
VideoContains information necessary for representing a video.