Hi,
depending on whether a page has submenus or not will depend on which colour the background is. Here is the actual snippet from around about where all the interesting stuff is happening.
This is my parseTertiaryNav snippet which parses the navigation correctly
//If Wayfinder has anything useful to output
if($runWayf!=""){
//add a title to the div
<h3>".$title."</h3>";
//set the colours to orange
$bgC="#FF9900";
$theName="orange";
//and output wayfinder
echo $runWayf;
}else{
//otherwise set the colour to green
$bgC="#669900";
$theName="green";
}
}
//This is the CSS that is then being outputted
$cssOutput="#wrapper{
background:#F90 url(assets/templates/tp-css/images/bg_image_".$theName.".gif) repeat-y;
}
#right{
background-color:".$bgC.";
}
";
//set a placeholder
$modx->setPlaceholder('bgSettings', $cssOutput);
My HTML template looks like this:
<html>
<style type="text/css">
.ap {
right: 1px;
width: 284px;
height: 30px;
position: absolute;
top: -16px;
z-index:12;
}
#subheader2{
background:#CC3300 url([*banner*]) no-repeat center center;
text-align:center;
margin-right:285px;
height:99px;
}
[+bgSettings+]
</style></html>
Now I’m not calling the snippet until further down the page...
[!parseTertiaryNav!]
I’ve tried [[parseTertiaryNav]] but it’s just not displaying anything at all.
Any ideas? I’m using 096
Cheers,
Taff