| Tricks on adding individual image Header for every category |
|
But before you do that you must consider some serious analysis, keep in mind that your image header will stay at that position forever. Once you upgrade your version of joomla there will be a possibility that a certain extensions will show unexpected behavior. And you must also consider that you can’t just put an additional extension whenever you want. Remember some extensions are using Jquery and having those scripts overlaps each other will display unexpected result. The key to prevent those problems is to keep away from adding an extension and think of a way to improvise base from what you already have. And what I’m going to show you here is how to use your simple built-in banner extension to make improvised image header. (this website is a perfect example for this tutorial as I have dif. image header for every sections). We are going to make use of that simple banner extension and use it as image header for each category and replace the image using CSS. 1. First you need to add additional position on your template’s index.php. as for my example I’m using bannerhead as it’s position name.
2. Update you templatedetail.xml
4. Now go to banner tab, and then create a new banner, you can add an image if you want just to make sure that it was running (don't worry we will take those out using CSS in just a few mins), but don’t forget to select a client and category you can leave the rest unfilled. Then save it. 5. Now go to Extension> module manager , click on new and select Banner. fill up the title (mine I call it joomlahead,this will be my image header for joomla category) and select the position (for my example it is bannerhead). Then on menu assignment select the categories that you wanted this banner to appear. (for me its joomla), and on the parameter settings you only need to filled-up the client and category. Then the most important is the Module suffix. As for my example I use ‘_joomla’. then save it. 6. go to the page where you are expecting that banner to appear. then refresh the page, after testing. open up your template.css and we will now hide that image and replace it.
then this will add your desired image header as background image.
And thats it ^^ you have done your first header image, if you wanted to add more header images then go back to step 5, just use the same client and category but choose a different menu assignment off course. And make sure you don’t forget to fill up the module suffix (make sure each of them has different module suffix) so that you can pull them out on CSS. joomla will give you a constant naming convention of bannergroup + [module suffix]. you can sneak through my Chibichibi style sheets and you will see a lot of .bannergroup styling there ^^. I know you'll be making fun of my CSS because it was too crowded, and It's embarrassing, it was all because I'm just new to CSS back then. Comments
(1)
|
- Photoshop Advance
- Web Design in General
- Photoshop Advance
- Cool Stuffs
- Photoshop Advance
- Photoshop Advance
- Photoshop Advance
- Flash Advance
- Cool Stuffs
- Flash Advance
- Web Design in General
- Photoshop Advance
- CSS Styling
- Photoshop Advance
- How To's
A lot of joomla users wanted to add individual header images for every category and there are lots of ways to make it possible, and the first step you will certainly be doing was to search for a joomla header module that has the capability to add image header.



























