Field.Append
Version: - stringSummary
Returns the append for the field.
Settings
The value is based on the Append field in the Layout section.
(Modules > Forms for editors > Form > Edit field > Layout > Fields > Append)
Remarks
Append is e.g. used in Bootstrap for adding e.g. a fixed currency symbol before a number field like this $ [number field], where $ is the append.
Examples
Outputting the template tag
@GetString("Field.Append")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Field.Append"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Field.Append");
}
Outputting the template tag
<!--@Field.Append-->
Check if string has a value
<!--@If Defined(@Field.Append)-->
Let's output this tag here: <strong><!--@Field.Append--></strong>
<!--@EndIf(@Field.Append)-->