Hide

YetaWF Documentation

Display
Print

YetaWF_Blog_Category Component

YetaWF_Blog_Category (Edit)

Allows selection of a blog category by displaying a dropdown list of all available blog categories. The model is the category ID.

Model Type: int

AdditionalMetadata Attributes

NameTypeDefaultDescription
ShowAllboolfalseDefines whether an additional entry "(All)" is added as the first entry with a value of 0. Only one of ShowAll, ShowSelectIfNone, ShowSelect should be specified.
ShowSelectIfNoneboolfalseDefines whether an additional entry "(select)" is added as the first entry with a value of 0 if model's category ID is 0. Only one of ShowAll, ShowSelectIfNone, ShowSelect should be specified.
ShowSelectboolfalseDefines whether an additional entry "(select)" is added as the first entry with a value of 0. Only one of ShowAll, ShowSelectIfNone, ShowSelect should be specified.
[Category("Blog"), Caption("Default Blog Category"), Description("The default blog category displayed when no blog category is selected")]
[UIHint("YetaWF_Blog_Category"), AdditionalMetadata("ShowAll", true), Required]
public int DefaultCategory { get; set; }