Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [megaline] Adding a different image before each category in the home page

Quote Reply
Re: [megaline] Adding a different image before each category in the home page In reply to
 
add an image field to your column table.

make a new global below called "catimage" with code...

Code:
sub {
my $tags = shift;
my $file = $DB->table('Category')->file_info ('Image', $tags->{ID});
my ($url) = $file =~ m,/path/to/your/category/images/(.*),;
return $url;
}

and that should do the trick.

its working for me.

r
Subject Author Views Date
Thread Adding a different image before each category in the home page megaline 5266 Jun 11, 2004, 6:25 PM
Thread Re: [megaline] Adding a different image before each category in the home page
afinlr 5110 Jun 14, 2004, 5:44 PM
Thread Re: [afinlr] Adding a different image before each category in the home page
anup123 5070 Aug 14, 2004, 5:40 PM
Thread Re: [anup123] Adding a different image before each category in the home page
minesite 5104 Aug 14, 2004, 6:03 PM
Thread Re: [minesite] Adding a different image before each category in the home page
anup123 5071 Aug 14, 2004, 10:51 PM
Thread Re: [anup123] Adding a different image before each category in the home page
minesite 5099 Aug 14, 2004, 11:12 PM
Thread Re: [minesite] Adding a different image before each category in the home page
Jag 4959 Oct 14, 2004, 7:03 PM
Thread Re: [Jag] Adding a different image before each category in the home page
HyperTherm 4949 Oct 14, 2004, 7:21 PM
Post Re: [HyperTherm] Adding a different image before each category in the home page
Jag 4958 Oct 14, 2004, 7:27 PM
Thread Re: [megaline] Adding a different image before each category in the home page
ryel01 5050 Aug 15, 2004, 1:54 AM
Thread Re: [ryel01] Adding a different image before each category in the home page
anup123 5069 Aug 15, 2004, 2:18 AM
Thread Re: [anup123] Adding a different image before each category in the home page
Andy 5102 Aug 15, 2004, 3:04 AM
Thread Re: [Andy] Adding a different image before each category in the home page
anup123 5093 Aug 15, 2004, 4:49 AM
Post Re: [anup123] Adding a different image before each category in the home page
Andy 5067 Aug 16, 2004, 12:44 AM