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.
Image | Contains 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 |
MinHtml | A 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. |
BbText | A 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. |
Multiline | Accepts BB Text tags and outputs html, the editor is a text area. |
Reference | A 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. |
Switchable | Switchable 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. |
Video | Contains information necessary for representing a video. |