Documentation Menu

1.5 Template Project

The Joomla! Documentation Working Group is running a project to develop detailed reference and tutorial material on Joomla! 1.5 templates.  There is a project page on the documentation wiki where you can see the work in progress and help us by contributing your knowledge.

Who's Online

We have 11 guests online

Help Site License

The Joomla! Help Site content is copyright © 2005 - 2008 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution NonCommercial ShareAlike 2.5. Some parts of this website may be subject to other licenses.
Home arrow Manual arrow 4. Mambots arrow Using Parameters within a Mambot

Using Parameters within a Mambot PDF Print E-mail
Like with modules or menus it is possible to add parameters to the standard Mambot configuration. These parameters have to be extracted thru the standard parameter handling.

For a detailed overview of the parameter definition within the Mambot XML file please see the section about parameters. To load the configured parameters within the Mambot see the following example.
function botTinymceEditorInit() {
  global $mosConfig_live_site, $database;
  // load tinymce mambot parameters
  $query = "SELECT id FROM #__mambots WHERE element = 'tinymce' AND folder = 'editors'";
  $database->setQuery( $query );
  $id = $database->loadResult();
  $mambot = new mosMambot( $database );
  $mambot->load( $id );
  $mambotParams =& new mosParameters( $mambot->params );
  $theme = $mambotParams->get( 'theme', 'basic' );
The configuration of the parameters will be done thru the Administrator interface.
Last Updated ( Friday, 11 February 2005 )
< Prev   Next >