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