{module_firstname}

Description

Displays the currently logged in user's first name (must be logged in to secure zone).

Syntax

{module_firstname 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

Examples

  • {module_firstname} - displays the first name in plain text
  • {module_firstname collection="collection1" template=""} - in this case nothing will be displayed, however the module's Liquid tags will become available in the collection1 collection
  • the logged in user's first name is also contained in a Liquid global object. {{globals.user}} will output:
    {
      "firstname": "Michael",
      "lastname": "Smith",
      "fullname": "Michael Smith",
      "email": "Michael.Boston@gmail.com",
      "isLoggedIn": true
    }

Syntax

{module_firstname}

Examples

  • {module_firstname} - displays the first name in plain text.