Joomla
Joomla Components
mod_html - one of the most useful Joomla modules
|
|
mod_html - one of the most useful Joomla modulesArticle Audience: Webmasters The mod_html module has been described as the Joomla swiss army knife. It allows you to insert arbitrary html in any template position available.
The mod html module is an extremely simple module, with no limits to its use. It simply provides a wrapper for you to insert arbitrary HTML / Javascript code in your Joomla website. The great thing about it is that you are able to insert adverts or other code without having to modify your template thus you have no risk of breaking your template in some way.
By creating a copy of the mod_html component, you can use the modules for as many links / adverts as you need! Simple go to the Module Manager Modules > Site Modules, click on a module which uses mod_html, select its checkbox and create copy in the toolbar menu, and you have a new copy to work with. Click on the copy of the mod_html , change the required parameters, change the HTML and publish. You can create as many mod_html modules as you want. By combining the use of mod_html with intelligent menu navigation, you will be able to target specific adverts to specifc pages, rather than having generic adverts all over the website. For example in the image below we can see that for the current module, instead of selecting the All option in the Menu Items, we have created a section (with its categories as children in the menu). We then selected the Affordable Web Development (which automatically selects its children too). Thus this advert has been targeted to the current section (and its categories) only. This is great when you have different affiliates for different parts of your site. Example you have template affiliates (and you target your templates section), and other affiliates for other sections of the site (and thus target each section with its own affiliates).
Inserting AdSense CodeLets give a short example of the use of mod_html to display AdSense code. The following is a shot of the module setup for displaying adsense code on the left side of the screen.
Inserting Affiliate CodeIn the example below we have different code for affiliates. As can be seen on this site itself, you can see that both mod_html components can live independently of each other.
|
||||||||||||||||||||||||||||||||||||||||||||||||