Gallery.PDF.Path

Version: - string  

Summary

Returns the path to the current PDF.

Settings

The value is based on the PDF input field in the List section for the paragraph module.

(Page > Paragraph > Module tab > List section > PDF).

Examples

Outputting the template tag

@GetString("Gallery.PDF.Path")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Gallery.PDF.Path"); }

Outputting the template tag

<!--@Gallery.PDF.Path-->

Check if string has a value

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