Gossamer Forum
Home : Products : Gossamer Links : Pre Sales :

template for category

Quote Reply
template for category
some one now how use template for category.

sub site_html_category {
# --------------------------------------------------------
# This rountine will build a page based for the current category.
#
my ($tags, $dynamic) = @_;
my $template = defined $dynamic ? $dynamic->param('t') : undef;
(ref $tags eq 'HASH') or croak "HTML_TEMPLATES: Argument '$tags' must be hash reference";

my ($name) = $tags->{'category_name'} =~ m,/?([^/]+)$,;
defined $dynamic and &load_user ($dynamic, $tags);
my $output = &load_template ( 'category.html', {
%$tags,
build_links_per_page => $LINKS{build_links_per_page},
category_first => $name,
%GLOBALS
}, undef, $template );
defined $dynamic and &clean_output($dynamic, \$output);
return $output;
}


Subject Author Views Date
Thread template for category campos 2179 Jul 26, 2000, 1:15 AM
Post Re: template for category
qango 2115 Jul 26, 2000, 9:05 AM