Motif Plugins
/motif uses Joomla!'s plugin API to make each /motif-powered template extendable through Joomla! plugins. /motif has its own plugin type with custom plugin triggers, so third-party extensions can easily customize the way the template is rendered. You can download an example /motif plugin in the /motif download section.
There are 4 plugin even triggers for /motif plugins:
onAfterMotifLoad
onBeforeInclude
onAfterInclude
onBeforeLoadModulePosition
onAfterLoadModulePosition
onAfterMotifLoad( &$motif )
This trigger occurs after the /motif framework is initialized and before the HTML is rendered. This can be used to dynamically change the active theme, add a custom class element to the body…
There are infinite possible uses for /motif plugins. The original intent of the plugins was to provide hooks into the template framework so social components like JomSocial or Community Builder could use a tool that enables members to select a theme for their profile, or to enable visitors to your…
Need help getting started?
We've got all the documentation you'll need right here.
