Home Page Module Display Problem

  • Sheeko
    Inactive member
  • Topic Author
  • Member
  • Member
More
10 years 6 months ago #40076 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.

Please Log in to join the conversation.

More
10 years 6 months ago #40085 by ivan.milic
In index.php of template you have this:
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
  • Member
More
10 years 6 months ago #40100 by Sheeko
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

Please Log in to join the conversation.

Time to create page: 0.184 seconds
Powered by Kunena Forum