replacing a header with the random image module - Joomla! Forum - community, help and support
im using template site im developing (jom_brighttag cmslounge if familiar it). has banner image static throughout pages. have found reference in template's index.php file, , know how change in template's images folder. replace mod_random_image module assigning module current banner position, generates random image (from set) when new page loaded/refreshed. have working in other positions, not in banner. can out?
here code index.php refers it:
<div id="banner"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/header.jpg" alt="image" height="245" width="900" /></div>
<?php if (jrequest::getvar('option')=='com_content' && jrequest::getvar('view')=='frontpage') { ?>
here code index.php refers it:
<div id="banner"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/header.jpg" alt="image" height="245" width="900" /></div>
<?php if (jrequest::getvar('option')=='com_content' && jrequest::getvar('view')=='frontpage') { ?>
you need put in code in template banner module show up. now, there no banner module position in template
this way, div shown if there module assigned position.
code: select all
<?php if ($this->countmodules('banner')): ?>
<div id="banner">
<jdoc:include type="modules" name="banner" style="xhtml" />
</div>
<?php endif; ?>
this way, div shown if there module assigned position.
Comments
Post a Comment