I was trying to add highlighter module to news template and finally achived it in my first try with out any prob.
I felt this is basic module required for any news website.
Steps to achieve it :
1) open the templateDetails.xml file
2) add this code
- Code: Select all
<position>highlighter</position>
just bellow this code
- Code: Select all
<position>bannertop</position>
and save the file
3) open file gk.const.php located under /lib/framework
4) add this code
- Code: Select all
'highlighter' => 'none',
just bellow
- Code: Select all
'bannertop' => 'none',
and save the file
5) now open default.php located under layout folder
6) add this bit of code
- Code: Select all
<?php if($this->API->modules('highlighter')) : ?>
<section id="gkhighlighter">
<div class="gkPage">
<jdoc:include type="modules" name="highlighter" style="<?php echo $this->module_styles['highlighter']; ?>" />
</div>
</section>
<?php endif; ?>
under this unique code
- Code: Select all
<?php if($this->API->modules('bannertop')) : ?>
<section id="gkBannerTop">
<div class="gkPage">
<jdoc:include type="modules" name="bannertop" style="<?php echo $this->module_styles['bannertop']; ?>" />
</div>
</section>
<?php endif; ?>
save the file
7) all u need to do now is just create css gkhighlighter
8) open template.css located under css folder
9)just add this code
- Code: Select all
#gkhighlighter {
background: #ffffff;
background-image:url('../images/joomla/bg.png');
background-repeat:repeat;
padding: 5px 0;
}
bellow this code
- Code: Select all
#gkBannerTop {
background: #ffffff;
background-image:url('../images/joomla/bg.png');
background-repeat:repeat;
padding: 18px 0;
}
10) install the highlighter module to your joomla site and allot highlighter postion for it
this it simple and easy..
Hope it wil be helpful for ppl who really need it..