Radiobutton List

    Returns: Prevalue ID

    Pretty much like the name indicates this Data type enables editors to choose from list of radiobutton

    Data Type Definition Example

    Radiobutton List Data Type Definition

    Content Example

    Radiobutton List Content

    MVC View Example


    @if (Model.Content.HasValue("miniFigure"))
        var preValue = Umbraco.GetPreValueAsString(Model.Content.GetPropertyValue<int>("miniFigure"));

    Dynamic (Obsolete)

    See Common pitfalls for more information about why the dynamic approach is obsolete.

    @if (CurrentPage.HasValue("miniFigure"))
        var preValue = Umbraco.GetPreValueAsString(CurrentPage.miniFigure);