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 5 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 Developer Manual arrow 4. Mambots arrow Writing a Mambot

Writing a Mambot PDF Print E-mail
Mambots are able to be triggered to perform at nominated locations in the execution of the Joomla script. At present these locations are few but will grow as the new framework for mambots matures. Mambot files are also loaded only once and a function is registered to be triggered on a particular event.

There are currently five documented event triggers for mambots:

  • onPrepareContent
  • onSearch
  • onInitEditor
  • onGetEditorContents
  • onEditorArea

All events require different arguments to be passed to them. This is explained in more detail below.

Mambots are also saved in groups under the /mambots directory. You will see all mambots relating to the searching are in the /mambots/search directory and those relating to content (mosimage, etc) are in the /mambots/content directory. When the search component is invoked, all the mambots in the 'search' group are loaded. Similarly, when content is to be displayed, all the mambots in the 'content' group are loaded.

Let's look at how you would write mambot for each of the supported events in the next section.

Last Updated ( Thursday, 07 September 2006 )
< Prev   Next >