Hi,
If you wanna do it via a global, try this:
tweak_category_loop
my $category_loop = $_[0];
my @new_categories;
foreach (@$category_loop) {
# Do stuff here, i.e $_->{ID}, $_->{Full_Name}, etc
#...
push @new_categories, $_;
}
return { category_loop => \@new_categories };
}
Then in category.html, do this at the first line:
<%tweak_category_loop($category_loop)%>
...and then whatever you do in the global above, should then be seen when you use <%loop category_loop%...
Hope that helps
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!
If you wanna do it via a global, try this:
tweak_category_loop
Code:
sub { my $category_loop = $_[0];
my @new_categories;
foreach (@$category_loop) {
# Do stuff here, i.e $_->{ID}, $_->{Full_Name}, etc
#...
push @new_categories, $_;
}
return { category_loop => \@new_categories };
}
Then in category.html, do this at the first line:
<%tweak_category_loop($category_loop)%>
...and then whatever you do in the global above, should then be seen when you use <%loop category_loop%...
Hope that helps
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!