|
The Connectage Joomla! Tips and Tricks blog contains useful snippets of information relating to the Joomla! Content Management System. This information is bought to you by Connectage, a UK based Web Consultancy and Development Company.
|
|
The following is a small core hack for Joomla 1.5 to allow plugins to be loaded into a custom module.
Joomla! 1.5 Plugins usually work within the content area, but not Modules. This is rather annoying when you have a decent Plugin and cannot use it across the whole of your website. But fear not... her is the work-around!
Place the code snippet below into the index.php file. This file can be found in the root of your Joomla! 1.5 site.
/* * // Allow plugins to be loaded into modules. (Rostislav Palivoda) */ JPluginHelper::importPlugin('content'); $tmp_row->text = JResponse::getBody(); $tmp_params = new JParameter(null); $mainframe->triggerEvent('onMap', array( &$tmp_row, &$tmp_params ), true ); $mainframe->triggerEvent('onPrepareContent', array( &$tmp_row, &$tmp_params ), true ); JResponse::setBody($tmp_row->text);
Place the code snippet just after line 82:
// trigger the onAfterRender events JDEBUG ? $_PROFILER->mark('afterRender') : null; $mainframe->triggerEvent('onAfterRender');
Remember to apply this each time you upgrade Joomla 1.5.x
|
|
|
One of the questions that often gets asked is "How can I load a Joomla! 1.5 Module into a content Article? This is in fact an easy thing to do, and can provide useful solutions such as:
- Loading in a Paypal Module into an Article.
- Displaying Advertising within your Content.
- Including Adsense Modules within your Content Articles.
- Displaying Audio and Video within Articles.
By default, Joomla! Modules can be placed in any Module Position of the Template, but they do not load into Content Articles.
This tutorial will explain how to enable and use Module loading within your Joomla! Articles, Here are the steps:
|
|
Joomla! comes with it's own Site Offline page which is displayed when the site is set to "Offline Mode" within the Joomla! Administration. This page can be easily customised with your own layout, logo and colours, so it represents a message which relates to your project.
This tutorial will explain how to customise your site offline page. Here are the steps:
|
|
|
|
|
|