Hi John,
You're right about the layers/DIVS
You'll want to create a DIV with an ID around each of those module positions.
| Code: |
<div id="content">
<?php mosMainBody(); ?>
<div id="nisus1">
<?php mosLoadModules ( 'nisus1' ); ?>
</div>
etc, etc,
</div>
|
You'd then create a class in your CSS as follows
| Code: |
#nisus1 {
float: left;
width: 200px;
etc, etc
}
|
Obviously don't put my etc, etc in and the float and width properties are just examples.
If you get this done and still want more! you can make the modules
collapsable i.e. they won't be published if no module is published in that position.
All you need to do is wrap each DIV with the following php tags:
<?php if (mosCountModules('nisus1')) { ?>
<?php } ?>
| Code: |
<?php if (mosCountModules('nisus1')) { ?>
<div id="nisus1">
<?php mosLoadModules ( 'nisus1' ); ?>
</div>
<?php } ?>
|
Hopefully that makes sense? You're simply using PHP to detect if the module has been published and if not then don't load the div either.
Post edited by: Big Bear, at: 2007/09/12 13:33