Gallery.Image.Metadata.title
Version: - stringSummary
Returns the meta tag title for the image.
Settings
The value is based on the Title of file input field in the Meta tag window for the selected image in the File Manager.
(File Manager - File - Meta tags - Title of file)
Remarks
Notice that this value is not meta data used for search engines.
Examples
Outputting the template tag
@GetString("Gallery.Image.Metadata.title")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Gallery.Image.Metadata.title"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Gallery.Image.Metadata.title");
}
Outputting the template tag
<!--@Gallery.Image.Metadata.title-->
Check if string has a value
<!--@If Defined(@Gallery.Image.Metadata.title)-->
Let's output this tag here: <strong><!--@Gallery.Image.Metadata.title--></strong>
<!--@EndIf(@Gallery.Image.Metadata.title)-->