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

Products: Gossamer Links: Development, Plugins and Globals: Re: [Gorospe] Category Logo: Edit Log

Here is the list of edits for this post
Re: [Gorospe] Category Logo
Please try the modified version and let me know what it outputs:

Code:
sub {
if (length($_[1]) > 1) { print $IN->header; print "Value already exists..."; return $_[1]; }
my @cats; my @back;
foreach (@split /\//, $_[0]) {
push @back, $_;
push @cats, join "/", @cats;
}

print $IN->header;
use Data::Dumper;
print "CATS: " . Dumper(@cats);


foreach (reverse @cats) {
my $html = $DB->table("Category")->select( ['Header_HTML'], { Full_Name => $_ } )->fetchrow || '';
if (length($html) > 1){ return $html; }
}

}

Also, I'm assuming this is being called in category.html?

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!

Last edited by:

Andy: Feb 1, 2012, 8:01 AM

Edit Log: