The Textbox multiple is a textarea control which allows the administrator to enter multi-line text. Below we can see an example of creating a Textbox multiple property:
The My Textbox Multiple property has the following appearance when we edit the document:
In order to read the value as a strongly typed object we use the following code:
@{
if (Model.Content.HasValue("myTextboxMultiple"))
{
<p>@(Model.Content.GetPropertyValue<string>("myTextboxMultiple"))</p>
}
}
In order to read the value using dynamic properties we use the following code:
@{
if (CurrentPage.HasValue("myTextboxMultiple"))
{
<p>@CurrentPage.myTextboxMultiple</p>
}
}