GoogleMapsClientID

Version: - string  

Summary

Returns the Google Maps client ID

Settings

The value is based on the Google Maps client ID field in the paragraph module settings.

(Page - Paragraph - Module - Google Maps API settings - Google Maps Client ID)

Examples

Outputting the template tag

@GetString("GoogleMapsClientID")
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Check if tag has a value

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

Assign tag to a value for later use

@{
string storedTag = GetString("GoogleMapsClientID");
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Outputting the template tag

<!--@GoogleMapsClientID-->
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Check if string has a value

<!--@If Defined(@GoogleMapsClientID)-->
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX