I do not want modules to display on the home page, but, of course, I'd like them to display on all the other pages of the site. There doesn't seem to be a setting for this in the admin, so I'm guessing I'd have to hard -code it?
What would be the best way to solve this situation?
Modifying the common/home.tpl only modifies the main content section.
Modifying the common/layout.tpl, if I remove the code here it removes the modules for the whole site.
I was thinking of using an "if then" statement, but do not know what I should call.
Here's an example of some wrong code (which doesn't call any errors, but doesn't work either):
Code: Select all
// START Vang's IF THEN Statement
<?php if ($content == 'common/home.tpl') { ?>
<div id="content"><?php echo $content; ?></div>
<?php } else { ?>
Code: Select all
// Modules loaded here
<div id="column_left">
<?php foreach ($modules as $module) { ?>
<?php if ($module['position'] == 'left') { ?>
<?php echo ${$module['code']}; ?>
<?php } ?>
<?php } ?>
</div>
<div id="column_right">
<?php foreach ($modules as $module) { ?>
<?php if ($module['position'] == 'right') { ?>
<?php echo ${$module['code']}; ?>
<?php } ?>
<?php } ?>
</div>
<div id="content"><?php echo $content; ?></div>
// END Modules
Code: Select all
// END of Vang's IF THEN Statement
<?php } ?>
Thanks everyone for your input.
