[ic] flyout with different style

scott andreas scott.andreas at gmail.com
Fri Dec 5 20:23:25 UTC 2008


Hello list!

I've edited menu.pm so that I can have a different style than that of
the top level link.

from menu.pm

sub dhtml_flyout {
	my($name, $opt, $template) = @_;

	my @out;
	my $fdiv = $name . "_flyout";

	my $vpf = $opt->{js_prefix} ||= 'mv_';

	my $flyclass = $opt->{toplevel_class} ||= 'barlink';

	$template = <<EOF if $template !~ /\S/;
{MV_LEVEL:}<div>{PAGE?}{MV_SPACER}<a id="{CODE}" href="{PAGE}"
onMouseOver="${vpf}mousein(this)" onMouseOut="${vpf}mouseout(this)"
title="{DESCRIPTION}"
class="${flyclass}">{NAME}</a>{/PAGE?}{PAGE:}{MV_SPACER}{NAME}{/MV_SPACER}{/PAGE:}</div>{/MV_LEVEL:}


it defaults to barlink if there isn't a value.


within the control set I have

[control-set]
	[component]product_flyout[/component]
	[flyout_class]flyout[/flyout_class]
	[flyout_style]border: 3px solid #b936a5; padding: 2px;[/flyout_style]
	[link_class]flyout[/link_class]
	[output][/output]
	[toplevel_class]barlink[/toplevel_class]
	[tree_selector]Products[/tree_selector]
[/control-set]

Is what I would like to do is have


	my $flyclass = $opt->{toplevel_class} || $opt->{link_class}';

but it won't work until I can get toplevel_class  to work


thanks

Scott A
If I put another value for toplevel_class it doen't work.

What am I missing?



thank you group



More information about the interchange-users mailing list