block.bitmodule

Created by: hiran, Last modification: 15 Jan 2007 (13:03 UTC)
Help creating modules. To make a module it is enough to place this tag into a corresponding mod-name.tpl file in the modules directory.
A {bitmodule} block should use 2 Smarty templates:
  • 1) module.tpl = usual template to generate module look-n-feel
  • 2) module-error.tpl = to generate diagnostic error message about incorrect {bitmodule} parameters

Parameters

nameThe module name, which will be used as kind of identifier within Bitweaver.
titleThe user display name for picking the module from a list.


Sample


<?php
{bitmodule name="module_name" title="Module title"}
    <!-- 
module Smarty/HTML code here -->
{/
bitmodule}
?>


See also