{module_lastname}

Description

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

Syntax

{module_lastname 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_lastname} - displays the last name in plain text
  • {module_lastname 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 last 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_lastname}

Examples

  • {module_lastname} - displays the last name in plain text.