{module_url}

Description

This module you can use in your web pages and it will allow you to capture information that you have appended to a URL. Please see this article for further details

Syntax

{module_url param="param1" 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.question

Examples

  • {module_url param="question"} - assuming the URL is mysite.com?question=how_are_you this module will display in plain text How_are_you
  • {module_url collection="collection1" template=""} - in this case nothing will be displayed, however the module's Liquid tags will become available in the collection1 collection.
  • the query params are also contained in a Liquid global object. this means that for the URL http://mysite.businesscatalyst.com/test2.html?question=true&second=true&third=not-sure {{globals.get}} will output:
    {
      "ID": "/test2.html",
      "question": "true",
      "second": "true",
      "third": "not-sure"
    }

Syntax

{module_url,variable}

Parameters

  • variable -this is the name of the query parameter, see the example below

Examples

  • {module_url,question} - assuming the URL is mysite.com?question=how_are_you this module will display in plain text How_are_you