ListPosition
Version: - stringSummary
Returns the position of the list.
Settings
The value is based on the List position field in the paragraph module settings.
(Page - Paragraph - Module - Location list settings - List position)
Examples
Outputting the template tag
@GetString("ListPosition")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("ListPosition"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("ListPosition");
}
Outputting the template tag
<!--@ListPosition-->
Check if string has a value
<!--@If Defined(@ListPosition)-->
Let's output this tag here: <strong><!--@ListPosition--></strong>
<!--@EndIf(@ListPosition)-->