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;
<%load_cat($ID)%>
<%endif%>
.. and then this code;
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;
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
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!
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

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!