Adding unique IDs to tablerenders

From e107 Wiki
Jump to: navigation, search

e107 Wiki: English | Русский | Deutsch | Français | Magyar | Português | Български | Česky | Nederlands | Ελληνικά | Italiano | Norske | Polska | Slovenščina | Español | Svenska | Translate: Wiki | Page

logo_wiki.png

Current Release 1.0.4 | e107.org | Download | Changelog | Forum | Plugins | Themes | RSS Feed of Latest Changes | Atom Feed of Latest Changes


How to write a plugin
Main page > I : First Aid > II : Development > III : Administration > IV : How To's > V : Plugin Writing > VI : Theming & Shortcodes


As of e107 0.7 tablestyle()'s $mode variable can be used to allow themers to style your specific menus in their theme.php's tablestyle() function.

e107's core menus have all been given their own unique $mode ID's - for example the chatbox menu has been given the ID chatbox.

In order to allow the themer to uniquely style your menus and other tablerenders you should also add your own $mode ID's to your tablerender() calls.

Code: example tablerender() with $mode ID
$ns->tablerender($caption, $text, 'yourplugin_id');

Where yourplugin is the directory name of your plugin and id is a unique identifier for this particular tablerender in your plugin.