{module_sitename}

Description

Displays the name of the current site.

Syntax

{module_sitename collection="my_custom_collection_name" template=""}

Note: When using named parameters always wrap the individual parameters in double quotes. Also, do note that modules using named parameters do not work for campaigns just yet.

Parameters

This module can be rendered:

  • in plain text
  • using Liquid collections - this is the Liquid output tag you can use - my_custom_collection_name.sitename

Examples

  • {module_sitename} - displays the site's name in plain text
  • {module_sitename collection="collection1" template=""} - in this case nothing will be displayed, however the module's Liquid tags will become available in the collection1 collection.
  • the site name is also contained in a Liquid global object. {{globals.site}} will output:
    {
      "id": 1576341,
      "name": "mtica4",
      "host": "mtica4.businesscatalyst.com",
      "countryCode": "US",
      "language": "US"
    }

Syntax

{module_sitename}

Examples

  • {module_sitename} - displays the site's name in plain text