We moved to new unified forum!

Please post all new support queries in our New Forum.

T3 Community Discussion & Support

Let's build the best free Joomla template framework, together!
  1. alfredopacino
  2. Sherlock Holmes
  3. General Discussion
  4. Saturday, 28 March 2015
  5.  Subscribe via email
Hi, I have the opposite of the usual problem about the component in home, I use a template who doesn't show the component in home page, I want to show it.

the strange part
https://www.diigo.com/item/image/51ynl/u8aw
From the backend the component should be shown, I guess there is some kind of rough code IF condition to hide the component, but I can't find it in blocks directory
Comment
There are no comments made yet.
Accepted Answer Pending Moderation
0
Votes
Undo
Hi,

Here are the steps to add "component" to a layout
- Go to your template manager, open the template style > Layout tab > see which layout the template is using
- Go to the tpls folder, open the layout file then check which mainbody block is loaded (normally its mainbody)
- Open the blocks > mainbody folder, open block you want o add "component" position to. Here is the sample:

<!-- MAIN CONTENT -->
<div id="t3-content" class="t3-content col-xs-12 col-md-6 col-md-push-3">
<?php if($this->hasMessage()) : ?>
<jdoc:include type="message" />
<?php endif ?>
<jdoc:include type="component" />
</div>
<!-- //MAIN CONTENT -->


Regards.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
ok, that's really strange, in both mainbody scripts (in attachment) there is the component and there is no condition, so why in home page is hided? even in default.php there is no condition

<div id="t3-wrapper" class="t3-wrapper"> <!-- Need this wrapper for off-canvas menu. Remove if you don't use of-canvas -->

<?php $this->loadBlock('header') ?>

<?php $this->loadBlock('mainnav') ?>

<?php $this->loadBlock('page_heading') ?>

<?php $this->loadBlock('background_slideshow') ?>

<?php $this->loadBlock('spotlight-1') ?>

<?php $this->loadBlock('mainbody') ?>

<?php $this->loadBlock('spotlight-4') ?>

<?php $this->loadBlock('spotlight-2') ?>

<?php $this->loadBlock('spotlight-3') ?>

<?php $this->loadBlock('navhelper') ?>

<?php $this->loadBlock('bottom_mainbody') ?>

<?php $this->loadBlock('footer') ?>

</div>


http://www.filedropper.com/one-sidebar-right

http://www.filedropper.com/no-sidebar
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hi again,

Sorry for my late reply. Could you please pm me your site url, admin account, ftp info, I will take a look and give you suggestion.

Regards.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.