Every slot inside a block of type title or title_em may have a help icon, normally not shown. To add it you have to call $_obweb method addButtons(), as in the example. By clicking on this help icon, a popup help window will be displayed.
$_obweb->addButtons(array("help"));This method has to be called inside slot code. For example if we want to add help to common/pages/core/conflang.php we have to call addButtons(). Obliquid will add the help icon for you and when somebody clicks on it, an help window will be shown. This window will be rendered by displaying common/core/templates/conflang_hlp.tpl and common/core/pages/conflang_hlp.php.
If the help button is called from php script in the local directory then the help window will be rendered by displaying local/core/templates/conflang_hlp.tpl and local/core/pages/conflang_hlp.php.
![]() | Displaying more than a button at once |
|---|---|
We can call addButtons with a list of button types: $_obweb->addButtons(array("print", "help")); | |