GoogleMapsAPIKey
Version: - stringSummary
Returns the Google maps API key.
Settings
The value is based on the Google Maps API key field in the paragraph module settings.
(Page - Paragraph - Module - Google Maps API settings - Google Maps API key)
Examples
Outputting the template tag
@GetString("GoogleMapsAPIKey")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("GoogleMapsAPIKey"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("GoogleMapsAPIKey");
}
Outputting the template tag
<!--@GoogleMapsAPIKey-->
Check if string has a value
<!--@If Defined(@GoogleMapsAPIKey)-->
Let's output this tag here: <strong><!--@GoogleMapsAPIKey--></strong>
<!--@EndIf(@GoogleMapsAPIKey)-->