Gallery.Folder.Name

Version: - string  

Summary

Returns the path to the folder from which the images/PDF comes from.

Settings

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

(Page > Paragraph > Module tab > List section > Folder)

Examples

Outputting the template tag

@GetString("Gallery.Folder.Name")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Gallery.Folder.Name"); }

Outputting the template tag

<!--@Gallery.Folder.Name-->

Check if string has a value

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