Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Place for main body text not visible in module position

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hi,
when I access the template manager and the Fronpage template, I want to add side module, that will go along the main page text. Now in the modules I dont see that module? Dont know how you call it, component, mainpage or whatever, but how do I get/assign position for that piece.

When I change the layout "home" positioning to "side-left" I can see Auto-Component.

How do I get this to the "home" layout?

Thanks,
Gorast
  • skullmonkey's Avatar
  • skullmonkey
  • 3 Month Basic
  • 18 posts
  • Karma: 0
The administrator has disabled public write access.
Are you able to use the default layout instead of "home"?

Please be aware changing layouts can reset the position widths

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
I can use the default, but wouldn't that change the whole look of the template? I will loose the New Lifestyle layout, right?
G
  • skullmonkey's Avatar
  • skullmonkey
  • 3 Month Basic
  • 18 posts
  • Karma: 0
The administrator has disabled public write access.
Are you using the tabs on the home page?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Yes.
G
  • skullmonkey's Avatar
  • skullmonkey
  • 3 Month Basic
  • 18 posts
  • Karma: 0
The administrator has disabled public write access.
Right ok

I'll check with a developer on this and get back to you

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Ok
G
  • skullmonkey's Avatar
  • skullmonkey
  • 3 Month Basic
  • 18 posts
  • Karma: 0
The administrator has disabled public write access.
Hi,

The homepage template is designed to remove the main component and only show modules.
You should not edit this directly as the changes will be wiped out in an upgrade.

In the layout screen save the homepage layout as a new name (eg home_custom) and then browse to the file in the template folder
/tpls/home_custom.php

open that file and then copy the block from the default layout into that file:
<?php if (!$hide_mainbody) : ?>
<?php $this->loadBlock ('mainbody') ?>
<?php endif; ?>
It will then show up in your new home_custom layout.

Regards,

Rob
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
Last Edit: 10 years 1 month ago by Robert Went. Reason: code formatting
The administrator has disabled public write access.
Hi,
on what line do I copy the code:

<?php if (!$hide_mainbody) : ?>
<?php $this->loadBlock ('mainbody') ?>
<?php endif; ?>

?

Thanks,
Gorast
  • skullmonkey's Avatar
  • skullmonkey
  • 3 Month Basic
  • 18 posts
  • Karma: 0
The administrator has disabled public write access.
Hi Gorast,

You need to place it between the existing blocks where you want the content to appear.

Rob
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers