Gossamer Forum
Home : Products : Links 2.0 : Customization :

How to make Detailed2.html

Quote Reply
How to make Detailed2.html
I need to use detailed.html template to show one thing.. detailed2.html template to show another.. when I build the page, the script will build both detailed.html and detailed2.html. Can this be done?

Thanks,
Den
Quote Reply
Re: How to make Detailed2.html In reply to
ok... in site_html_templates, where you see
Code:
sub site_html_detailed {
# --------------------------------------------------------
# This routine will build a single page per link. It's only
# really useful if you have a long review for each link --
# or more information then can be displayed in a summary.
#
my %rec = @_;
return &load_template ('detailed.html', {
total => $total,
grand_total => $grand_total,
title_linked => $title_linked,
%rec,
%globals
} );
}

copy that, and put this underneath:
Code:
sub site_html_detailed2 {
# --------------------------------------------------------
# This routine will build a single page per link. It's only
# really useful if you have a long review for each link --
# or more information then can be displayed in a summary.
#
my %rec = @_;
return &load_template ('detailed2.html', {
total => $total,
grand_total => $grand_total,
title_linked => $title_linked,
%rec,
%globals
} );
}

--Tom