Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Mark2] Display multiple images on a link

Quote Reply
Re: [Mark2] Display multiple images on a link In reply to
Hi,

Ok, please try this.

format_multi_select
Code:
sub {
my @cut = split(/\n/, $_[0]);
use Data::Dumper;
my @loop;
foreach (@cut) {
push @loop, { value => $_ };
}
return { multi_select_loop => \@loop }
}

..then call with:

Code:
<%if Region%>
<%format_multi_select($Region)%>
<%loop multi_select_loop%>
<img border="0" src="<%config.build_root_url%>/flags/<%value%>.gif" height="14" width="25" border=0></a>
<%endloop%>
<%endif%>

That should do the trick =)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Display multiple images on a link Mark2 5252 Oct 9, 2008, 8:03 PM
Post Re: [Mark2] Display multiple images on a link
Andy 5079 Oct 9, 2008, 11:58 PM
Thread Re: [Mark2] Display multiple images on a link
Andy 5095 Oct 10, 2008, 12:22 AM
Post Re: [Andy] Display multiple images on a link
Mark2 5054 Oct 10, 2008, 2:48 PM