Create Your own Joomla Module: Sometimes you want to place HTML code, Image or Javascript code on your site front page.You could this by working into the template file (index.php), but there is another easier and more flexible and easy way. Put it into a Joomla Module Joomla Modules are peace of code which can be placed any where on the site. By just giving the different position to joomla module you can change the look of the site. Modules provide flexibility. So how to make module in Joomla 1.5? - Login to adminstrator side
- go to Module Manager
- click on new button
- select Custom HTML
- click on Next
- Enter Title
- Select Position, note you can also type in the positon, this will create the new position
- Put your HTML code in Custom Output
- Save
One very important feature of joomla module is , it can be shown in content or article. See how to publish module in joomla article. Check your website to see if it is looks you want it to be. Otherwise, go back and change the HTML code. You can also select on which pages you want to show the module. Your done! You just made your own Joomla Module!
As you just read in joomla you can create, install modules. But you need to publish these modules on specific positions.
Example of joomla template positions can be left, right, top etc. Don’t go on the meaning of the word used for positions as it depends on the template. For example: if in your template left position is defined in right hand column then the module published on left position will be shown on right column. I hope i am not confusing you.
How to see available module positions in joomla template ?
Bottom line is you need to know the positions which are available in your joomla template. You can see different positions available and there exact location on the joomla template, using two different methods
1. www.yourwebsite.com?index.php&tp=1 2. Login to Administrator, go to templates , select the template of which you want to see the module positions, and click on preview.
How to make positions in joomla ?
There are two steps 1. create new module position 2. Put this module position in your joomla template, so that you can publish different module on this new position
To create new module position, when you click on any module there is drop down for selecting module position, you can actually type in this box and create new module position :)
Now go to your joomla template and edit index.php, put <jdoc:include type="modules" name="newpostion" /> and its done.
|