Textbox

    Alias: Umbraco.Textbox

    Returns: String

    Textbox is an HTML input control for text.

    Data Type Definition Example

    Textbox Data Type Definition

    Settings

    Content Example

    Textbox Content Example

    MVC View Example

    @{
        if (Model.Content.HasValue("pageTitle")){
            <p>@(Model.Content.GetPropertyValue<string>("pageTitle"))</p>
        }
    }
    

    Dynamic (Obsolete)

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

    @{
        if (CurrentPage.HasValue("pageTitle")){
            <p>@CurrentPage.pageTitle</p>
        }
    }