Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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
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.
  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.