Display component

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 Oct 08, 2013 8:07 pm
Reply with quote
Report this post
hello everyone
i am trying to find how to display component view on frontpage.
but there isn't such option.

can you please assist?
User avatar
Fresh Boarder

GK User
Tue Oct 08, 2013 8:13 pm
Reply with quote
Report this post
If i am not mistaken, if you don't publish modules in mainbody position it should show component.
User avatar
Platinum Boarder

GK User
Tue Oct 08, 2013 8:57 pm
Reply with quote
Report this post
Via main menu -> home , i changed type of item type.
from articles -> featured articles to something else.

On frontpage nothing changed. I also unpublished any modules on mainbody positions.

somewhere there is an option on template settings to view component or mainbody or both.
well, it used to be.
at this time i can't figure it out how to display component on frontpage
User avatar
Fresh Boarder

GK User
Tue Oct 08, 2013 9:26 pm
Reply with quote
Report this post
If you are not using mainbody module position at all, do below. This will remove any conditional checks and simply display component in all views.

See file templates/gk_rockwall/layout/default.php
Line: 159 to 165 which is below
Code: Select all
               <div 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; ?>
               </div>

Replace with below
Code: Select all
               <div id="gkMainbody">
                  <jdoc:include type="component" />
               </div>


Alternatively send me an admin access and ftp access where I can check your website.

My email normanuk[at]live.co.uk. Please use this topics title as your email subject.
User avatar
Platinum Boarder


cron