× Discussion about "Cosmetics" Joomla/VirtueMart template.

Home Page Module Display Problem

More
5 years 2 weeks 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 or Create an account to join the conversation.

More
5 years 2 weeks ago #40085 by ivan.milic
In index.php of template you have this:
<?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 or Create an account to join the conversation.

More
5 years 2 weeks 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 or Create an account to join the conversation.

Moderators: milos
Time to create page: 0.099 seconds