Re: disabling zones
> There is however a little feature you might be able to take advantage
> of. If you set urlzones: true in site.config you can turn off specific
> zones by adding to a url something like header=false or side=false.
> Anyway, this could perhaps be used in a config file (skin.php) by
> doing something like:
>
> if (your cond) $_GET['header'] = false;
I could not get this to work. It also seesm a bit of a cludge to
manipulate a $_GET var directly.
> noPrintZones: side,bottom,header
>
> Or for another example, using the new site.config array syntax we might do:
>
> nozone:header: test*,main,site*
> nozone:footer: test*,main
Both seem to be good solutions. Bear in mind that nozone should
prevent the zone being outputted to HTML, not just visually hidden.
To hide a zone or object via css one could use something this function:
function BOLTFhide($args, $zone) {
global $BOLTpluginStyles;
if ($args[''][0]) $zone = $args[''][0];
$BOLTpluginStyles[] = "#{$zone} {display:none;} #{$zone}bar
{display:none;}";
}
I am using $BOLTpluginStyles here for brevity.
[(hide)] will hide a zone with this markup in place (useful for right
or side pages somewhere in the page hierarchy).
[(hide topsearch)] as markup somewhere will hide an object with
id=topsearch, in my case a div in th etop with the search box.
Cheers,
~Hans
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---