How to add highlighter in news template

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sat Jan 12, 2013 1:04 pm
Reply with quote
Report this post
Hi,

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..
User avatar
Expert Boarder

teitbite
Sun Jan 13, 2013 1:53 am
Reply with quote
Report this post
Hi

Yes this is a very nice instruction. Just in case someone has problems with above here is a link to article in documentation about making new module positions: https://www.gavick.com/documentation/jo ... -position/
User avatar
Moderator


cron