- Posts: 48
- Thank you received: 0
Home Page Module Display Problem
-
Sheeko
Inactive member - Topic Author
- Member
Less
More
10 years 6 months ago #40076
by Sheeko
Home Page Module Display Problem was created by Sheeko
Hi!
Have read through previous posts and tried everything but I'm unable to get the left and inset module to display on the home page. Could you please provide information ASAP.
Have read through previous posts and tried everything but I'm unable to get the left and inset module to display on the home page. Could you please provide information ASAP.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
10 years 6 months ago #40085
by ivan.milic
Replied by ivan.milic on topic Home Page Module Display Problem
In index.php of template you have this:
so all 3 will (left, main,right) display on all other pages that home. To override this:
change:
<?php if (!$ishome) { ?>
to:
<?php if (!$ishome || true) { ?>
Code:
<?php if (!$ishome) { ?>
<div class="main_bg">
<div class="main_area">
<?php
if($columnLayout=="mlr") {
require(dirname(__FILE__).DS.'inc'.DS.'col_main.php');
require(dirname(__FILE__).DS.'inc'.DS.'col_left.php');
require(dirname(__FILE__).DS.'inc'.DS.'col_right.php');
} else if($columnLayout=="lrm") {
require(dirname(__FILE__).DS.'inc'.DS.'col_left.php');
require(dirname(__FILE__).DS.'inc'.DS.'col_right.php');
require(dirname(__FILE__).DS.'inc'.DS.'col_main.php');
} else {
require(dirname(__FILE__).DS.'inc'.DS.'col_left.php');
require(dirname(__FILE__).DS.'inc'.DS.'col_main.php');
require(dirname(__FILE__).DS.'inc'.DS.'col_right.php');
}
?>
<div class="clr"></div>
</div>
</div>
<?php } ?>
so all 3 will (left, main,right) display on all other pages that home. To override this:
change:
<?php if (!$ishome) { ?>
to:
<?php if (!$ishome || true) { ?>
Please Log in to join the conversation.
-
Sheeko
Inactive member - Topic Author
- Member
Less
More
- Posts: 48
- Thank you received: 0
10 years 6 months ago #40100
by Sheeko
Replied by Sheeko on topic Home Page Module Display Problem
Thanks for information. The index.php file that is included with the hotstart package is completely different than what you have quoted above. So I checked the standalone template files and the index.php with the above code was there in the template files. So I modified it and as you suggested and it works fine.
Thanks again
Thanks again
Please Log in to join the conversation.
Time to create page: 0.184 seconds