I know there must be a better way but here is what I have.
in site_html_template add
# --------------------------------------------------------
# This routine is used to display what a link listing should look
# like.
my %rec = @_;
return &load_template ('linklisting.html', {
detailed_url => "$build_detail_url/$rec{'ID'}$build_extension",
%rec,
%globals
});
}
make a template for you title. (can include any of the resource's info, just title or linked title) If you want to include the new and pop images, you'd have to add some code above. Just look at sub site_html_link
then slap this in the cgi where you need the title
replacing the $ID with whatever variable you have for the ID num.
or $ResourceTitle = &html_link_listing (&get_record($ID));
try it and see if it will work for you. the cgi where you add this code will wave to require
require "/path/to/links.cfg";
require "$db_lib_path/db_utils.pl";
require "$db_lib_path/links.def";
require "$db_lib_path/site_html_templates.pl";
If you come up with something cleaner which just changes id # to title, I'd like the snippet of code
Thanx
------------------
http://bartour.hypermart.net
in site_html_template add
Code:
sub html_link_listing { # --------------------------------------------------------
# This routine is used to display what a link listing should look
# like.
my %rec = @_;
return &load_template ('linklisting.html', {
detailed_url => "$build_detail_url/$rec{'ID'}$build_extension",
%rec,
%globals
});
}
make a template for you title. (can include any of the resource's info, just title or linked title) If you want to include the new and pop images, you'd have to add some code above. Just look at sub site_html_link
then slap this in the cgi where you need the title
Code:
print &html_link_listing (&get_record($ID));or $ResourceTitle = &html_link_listing (&get_record($ID));
try it and see if it will work for you. the cgi where you add this code will wave to require
require "/path/to/links.cfg";
require "$db_lib_path/db_utils.pl";
require "$db_lib_path/links.def";
require "$db_lib_path/site_html_templates.pl";
If you come up with something cleaner which just changes id # to title, I'd like the snippet of code
Thanx
------------------
http://bartour.hypermart.net