DwPaging.PreviousButtonImage

Version: - string  

Summary

Returns the image of the Previous button.

Settings

The value is based on the Image field in the paragraph settings.

(Page - Paragraph - Modules - Paging - 'Previous' button image)

Remarks

The tag is available when 'Image' 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.PreviousButtonImage")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("DwPaging.PreviousButtonImage"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("DwPaging.PreviousButtonImage"); }

Outputting the template tag

<!--@DwPaging.PreviousButtonImage-->

Check if string has a value

<!--@If Defined(@DwPaging.PreviousButtonImage)--> Let's output this tag here: <strong><!--@DwPaging.PreviousButtonImage--></strong> <!--@EndIf(@DwPaging.PreviousButtonImage)-->