List Info

Thread: Dynamically Changing Banners in Joomla




Dynamically Changing Banners in Joomla
country flaguser name
United States
2008-03-21 23:47:01

I'm looking for ideas for code I can put in my Joomla template to place a separate banner image at the top of my page for each menu item users select.

For example:

For Home --> IMAGE 1
For About Us --> IMAGE 2
For FAQ's --> IMAGE 3
etc.

Any coding ideas to implement this? My preference is to hard code this into my template, vs. a module item -- unless someone has a module that will do this.

I have this, but can't tag individual menu items without ending up with parse errors:

$imagename="main_pic.jpg";

if($option=='' || $option=='com_frontpage')
{
$height = 'height="294"';
$main_pic = "images/home/".$imagename;
}
else
{
$height = 'height="170"';
$main_pic = "images/".$imagename;
}

GK
-----
Gary Kopycinski
Editor & Publisher
eNews Park Forest, Inc.

↑ Grab this HeadlineAnimator

[Non-text portions of this message have been removed]

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )