i want to have a different image for avery section of the site ( i.e. for any first level in the hierarchy)
i'm using ellnav+L menu
i've defined a tag i called bgpage that i use to change the background stile in the ellnav template
Code: Select all
<div id="page" {bgpage}>
but this dont fits well to my needs, cause avery page have a different name (?alias?).$p=$_GET['page'];
switch ($p) {
case La_compagnia:
echo "style=" background: #fff url(banner/08.jpg) no-repeat 200px 80px; " ";
break;
default :
echo "style=" background: #fff url(banner/02.jpg) no-repeat 200px 80px; " ";
}
i need to know and to use the variable that the breadcrumbs tag uses to get and generate the first level of the adress
any help??