Removing the article portion (module only page)

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
Tue Sep 15, 2015 8:04 pm
Reply with quote
Report this post
I am trying to imitate the front page and I don't want to have the lines that occur at the bottom of each article.

How do I create a module only page?
User avatar
Junior Boarder

teitbite
Thu Sep 17, 2015 6:43 pm
Reply with quote
Report this post
Hi

Please edit /layout/default.php and replace code:

Code: Select all
            <section id="gkMainbody">
               <?php if(($this->layout->isFrontpage() && !$this->API->modules('mainbody')) || !$this->layout->isFrontpage()) : ?>
                  <jdoc:include type="component" />
               <?php else : ?>
                  <jdoc:include type="modules" name="mainbody" style="<?php echo $this->module_styles['mainbody']; ?>" />
               <?php endif; ?>
            </section>


with:

Code: Select all
            <section id="gkMainbody">
               <?php if(!$this->API->modules('mainbody')) : ?>
                  <jdoc:include type="component" />
               <?php else : ?>
                  <jdoc:include type="modules" name="mainbody" style="<?php echo $this->module_styles['mainbody']; ?>" />
               <?php endif; ?>
            </section>


this way using module position "mainbody" will replace component used for this page.
User avatar
Moderator


cron