{module_pagename}

Description

This module renders the current web page's name.

Syntax

{module_pagename 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.title

Examples

  • {module_pagename} - renders the name of the page in plain text
  • The way to set up a different image which loads on a per page basis is to use the {module_pagename} to render the name of the page, but add this module to the image link, i.e. <img src=”/images/{module_pagename}.jpg”>. This will then render the word About (if you are on a page named ‘About’) and the resulting image link would be <img src=”/images/About.jpg”>.
  • {module_pagename collection="collection1" template=""} - in this case nothing will be displayed, however the module's Liquid tags will become available in the collection1 collection.
  • You can also use this module between the title tags to set the title

Syntax

{module_pagename}

Examples

  • {module_pagename} - renders the name of the page in plain text
  • The way to set up a different image which loads on a per page basis is to use the {module_pagename} to render the name of the page, but add this module to the image link, i.e. <img src=”/images/{module_pagename}.jpg”>. This will then render the word About (if you are on a page named ‘About’) and the resulting image link would be <img src=”/images/About.jpg”>.
  • You can also use this module between the title tags to set the title