DwPaging.PreviousButtonText
Version: - stringSummary
Returns the text of the Previous button.
Settings
The value is based on the Text field in the paragraph settings.
(Page - Paragraph - Modules - Paging - 'Previous' button text)
Remarks
The tag is available when 'Text' or 'Text and image' is selected in 'Previous' button type' in paragraph settings and you render a page where it's possible to go to a previous page.
Examples
Outputting the template tag
@GetString("DwPaging.PreviousButtonText")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("DwPaging.PreviousButtonText"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("DwPaging.PreviousButtonText");
}
Outputting the template tag
<!--@DwPaging.PreviousButtonText-->
Check if string has a value
<!--@If Defined(@DwPaging.PreviousButtonText)-->
Let's output this tag here: <strong><!--@DwPaging.PreviousButtonText--></strong>
<!--@EndIf(@DwPaging.PreviousButtonText)-->