Shape 5

General Category => Joomla Talk => : bularae December 18, 2007, 08:11:32 PM



: Module position help
: bularae December 18, 2007, 08:11:32 PM
I just joined—thanks for some useful templates! I can't seem to get any support at Joomla so I thought I might try here as I know this is an easy thing but I'm just missing it.

I have another site that I installed and modified a template for (not one of yours—I hadn't found you yet!).

Anyway, I added module position bottom but above the footer, in order to put a flash item in it that plays continuously.

My problem is that I didn't put it in the right place, or I should call it something else, as it behaves as if it's part of main body/right/left rather than part of the footer, and thus it refreshes with every menu maneuver to a new content page. I need it to be static like the menus/header/footer because I don't want it to reload and start playing from the beginning each time. Does that make sense?

You can see the status here: http://mauiweddingsconsultant.com/mwc/index.php

Can anyone guide me on how I should do it differently in the template?

Here is the code for the template page:
:
<?php
defined
'_VALID_MOS' ) or die( 'Restricted access' );
// needed to seperate the ISO number from the language file constant _ISO
$iso explode'='_ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'$iso[1] .'"?' .'>';
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php mosShowHead(); ?>
<?php
if ( $my->id ) {
initEditor();
}
$vasen mosCountModules'left' );
$oikea mosCountModules'right' );
?>

<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO?>" />
<link href="<?php echo $mosConfig_live_site;?>/templates/estime_redberry/css/template_css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">
<div id="header">
<div id="navi">
  <div align="right">
    <?php mosLoadModules 'user3', -1); ?>
      </div>
</div>
    <div id="headerl"></div>
  <div id="headerr">
<div id="search_out">
<div id="search_in"><?php mosLoadModules 'user4', -); ?></div>
</div>
</div>
</div>
<div id="content">
<div id="vali2">
<div id="bb"><?php mosLoadModules 'top', -); ?></div>
</div>
<div id="keski4">
<?php if(($oikea+$vasen)<1){ ?>
<?php mosMainBody();
}
?>
</div>
<?php if($vasen>&& $oikea<1){ ?>
<div id="vasen"><?php mosLoadModules 'left', -); ?></div>
<div id="keski"><?php mosMainBody(); ?></div>
<?php ?>
<?php if($vasen<&& $oikea>0){ ?>
<div id="keski3"><?php mosMainBody(); ?></div>
<div id="oikea"><?php mosLoadModules 'right', -); ?></div>
<?php ?>
<?php if($oikea>&& $vasen>0){ ?>
<div id="vasen"><?php mosLoadModules 'left', -); ?></div>
<div id="keski2"><?php mosMainBody(); ?></div>
<div id="oikea"><?php mosLoadModules 'right', -); ?></div>
<?php ?>
</div>
<div id="bottomphotos"><?php mosLoadModules 'bottom', -); ?></div>

    <div id="footer2">
<div id="copy"><?php include_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/footer.php' ); ?></div>
<div id="othermenu"><a href="http://validator.w3.org/check?uri=<?php echo $mosConfig_live_site;?>" target="_blank" title="XHTML 1.0 Transitional valid">XHTML 1.0</a>&nbsp;|&nbsp;<a href="http://jigsaw.w3.org/css-validator/validator?uri=<?php echo $mosConfig_live_site;?>/templates/estime_redberry/css/template_css.css" title="Valid CSS" target="_blank">CSS</a></div>
</div>
</div>
<?php mosLoadModules'debug', -);?>
</body>
</html>

Thanks much for any assistance!


: Re: Module position help
: jonahh December 18, 2007, 09:32:43 PM
Hello,

There really isn't a way around this.  When you make a menu maneuver to a new content page, the entire template is reloaded each time you hit a content page or each time you click a link on your Joomla website.  Every single module position is reloaded.

Regards,


: Re: Module position help
: bularae December 19, 2007, 03:49:39 PM
Oh what a bummer! I guess it's an illusion that menus/headers/footers don't reload then... preloaded/cached images?

Thanks for the response!