module_available tag

   Purpose

A plugin to test wether a given module (by name) is installed, and available for use.

   How to use?

Insert the tag into your template/page like:

{module_available module='News' assign='havenews'}
{if $havenews}
  {cms_module module=News}
{/if}

Note: You cannot use the short form of the module call, i.e: {News} in this type of expression.

   Available parameters

  • module (required) - (string) The name of the module.
  • assign - Assign the results to the named smarty variable.