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

category_results_loop in 2.2.1

Quote Reply
category_results_loop in 2.2.1
Hi,

Has anyone else had problems using the category_results_loop tag in search_results.html ? The <%category_results%> tag works fine, and gives the results you would expect. However, using the loop;

a) Doesn't have <%URL%> defined
b) For some reason, <%Short_Name%> isn't defined either.
c) Most of the other tags also don't seem to be available.

I've tried doing this as a global, in subcategory.html , with;

Code:
<%ifnot Name%>
<%load_cat($ID)%>
<%endif%>

.. and then this code;

Code:
sub {
print "GOT ID: $_[0]";
my $table = $DB->table('Category');
my $hash = $table->select( { ID => $_[0] } )->fetchrow_hashref;
print "GOT Full_NAME: $hash->{Full_Name}";
$hash->{ShowName} = Links::Build::build ('title_linked', { name => $hash->{Full_Name}, complete => 1, home => 0 });
my $URL = $table->as_url($hash->{Full_Name});
return {
ShowName => $hash->{ShowName},
URL => $URL,
Full_Name => $hash->{Full_Name},
Short_Name => $hash->{Name},
Number_of_Links => $hash->{Number_of_Links}
};
}

However, this STILL doesn't work. It just outputs;

Quote:
Business_and_Management ==> Business and Management ==> Business and Management
Business_and_Management ==> Business and Management/Business Strategy ==> Business Strategy

This is really causing me to loose my hair ~:| I've been working on it for the last hour, and its driving me mad Mad

Anyone got any ideas?

TIA

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!
Quote Reply
Re: [Andy] category_results_loop in 2.2.1 In reply to
What you got for this code as result?:
Code:
print "GOT Full_NAME: $hash->{Full_Name}";
Did it print the full category name?

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...