How to move a region?
timka - January 7, 2009 - 16:51
| Project: | AD The Morning After |
| Version: | 6.x-1.5 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Hi there,
is it possible to move a region to another place?
I would like to have the region "left-sidebar2 to the left side. I mean like:
left-sidebar <> content <> right-sidebar
is there a way to do it?
Would be really nice if you can give me a suggestion how to do this.
Thanks a lot, have a nice day and sorry for the bad english
Regards,
Tim

#1
Regions are called in the
page.tpl.phpfile that look like this<?php print $left-sidebar2; ?>Move them around the page as you please though do be careful if some have IF conditions attached to them, make sure to move the code intact:
<?php if ($secondary_links): ?><div id="secondary">
<?php print theme('links', $secondary_links); ?>
</div> <!-- /#secondary -->
<?php endif; ?>
For what you propose just solve via DIVs like
<div id="left"> <?php print $left; ?> </div><div id="center"> <?php print $content; ?></div>
<div id="right"> <?php print $right; ?></div>
Thats an *example* btw, make sure your region names match up with .info