Gallery.List.Folder
Version: - stringSummary
Returns the path to the folder with images or PDF.
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.List.Folder")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Gallery.List.Folder"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Gallery.List.Folder");
}
Outputting the template tag
<!--@Gallery.List.Folder-->
Check if string has a value
<!--@If Defined(@Gallery.List.Folder)-->
Let's output this tag here: <strong><!--@Gallery.List.Folder--></strong>
<!--@EndIf(@Gallery.List.Folder)-->