Display Properties of the Current Host - Documentation topics on: displaying the current host,hosts,velocity,.

This documentation is a static copy for this version. For current documentation, see: http://dotcms.com/docs/latest

Display Properties of the Current Host

Commonly used properties of the current host can be displayed through the following velocity statements:

Host Identifier: $host.identifier
Hostname: $host.hostName
Google Analytics: $host.map.googleAnalytics
Google Map: $host.map.googleMap
Host Aliases: $host.map.aliases
Title: $host.map.title
Is host default? (boolean): $host.map.isDefault
Host description: $host.map.description
Site Page Width: $host.map.pageWidth

For a complete list of host properties that can be displayed in Velocity simply print $host to the page.