Okay...I have played around with this and I have come up with a solution...
1) Add the following sub-routine in your
db_utils.pl file:
Code:
sub build_linked_cgi_title {
# --------------------------------------------------------
# Returns a string of the current category broken up
# by section, with each part linked to the respective section.
my $input = shift;
my (@dirs, $dir, $output, $last);
@dirs = split (/\//, $input);
$last = &build_clean(pop @dirs);
$output .= qq| <A HREF="$build_root_url/">Top</A> :|;
foreach $dir (@dirs) {
$output .= qq| <A HREF="$ENV{'SCRIPT_NAME'}">$dir</A> :|;
}
$output .= qq| <B>$last</B>|;
return $output;
}
You can change the HTML layout by editing and adding HTML codes between
$output .= qq| and
|;.
2) Replace the following codes in
add.cgi file:
Code:
local (%in) = &parse_form;
With the following codes:
Code:
local (%in, $title_linked) = &parse_form;
3) Add the following codes after the local... codes
at the top of the
sub main routine in the
add.cgi file:
Code:
$title_linked = &build_linked_cgi_title ("Add a Resource");
You can replace
Add a Resource between the double
quotation marks to anything you want.
4) In the
sub process_form routine add the following
codes at the top after the my...codes:
Code:
local ($title_linked);
5) Add the following codes before any of the
&site_html_add_failure calls:
Code:
$title_linked = &build_linked_cgi_title ("Add a Resource/Error: Unable to Process Form");
Again, you can edit the text between the double quotation marks.
6) Add the following codes before any of the
&site_html_add_success calls:
Code:
$title_linked = &build_linked_cgi_title ("Add a Resource/Submission Received");
Again, you can edit the text between the double quotation marks.
7) Define the <%title_linked%> tag in ALL of the ADD sub-routines in the
site_html_templates.pl file:
Code:
title_linked => $title_linked,
8) Then in your ADD template files, add the following codes:
BTW: These codes can be placed in similar manner in the other LINKS scripts, like modify.cgi, rate.cgi, search.cgi.
HOPE THIS HELPS.
Regards,
------------------
Eliot Lee Anthro TECH,L.L.C
www.anthrotech.com Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
----------------------
[This message has been edited by Eliot (edited January 19, 2000).]