module_available tag

We need your assistance to make the documentation accurate, user friendly and understandable. Therefore we welcome any tips or suggestions regarding documentation. Thank you in advance for your contribution.

However, we will not respond to technical support questions submitted using this form. If you are having difficulty with CMSMS and cannot find the solution on this website, please submit your question appropriately on our support forum at: http://forum.cmsmadesimple.org. Please remember to follow the forum rules when posting.

CMS Made Simple™ Partner



   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.