I am probably missing the obvious. I would like the Contact Name and Contact Email fields to display with each link listed under a category. I have been tinkering in site_html.pl but with no success. and I must be picking the wrong keywords when searching. Any help would be appreciated
Feb 1, 2001, 8:24 AM
Veteran (17240 posts)
Feb 1, 2001, 8:24 AM
Post #2 of 8
Views: 1740
In the sub site_html_link routine, you need to add:
~;
if (($rec{'Contact Name'} neq "") AND ($rec{'Contact Email'} neq "")) {
$output .= qq~<a href="$rec{'Contact Email'}">$rec{'Contact Name'}</a>~;
}
And it is a lot easier to use TEMPLATES than the site_html.pl file especially if you are not familar with Perl programming.
Regards,
Eliot Lee
Code:
~;
if (($rec{'Contact Name'} neq "") AND ($rec{'Contact Email'} neq "")) {
$output .= qq~<a href="$rec{'Contact Email'}">$rec{'Contact Name'}</a>~;
}
And it is a lot easier to use TEMPLATES than the site_html.pl file especially if you are not familar with Perl programming.
Regards,
Eliot Lee
Feb 2, 2001, 7:36 AM
Veteran (17240 posts)
Feb 2, 2001, 7:36 AM
Post #4 of 8
Views: 1739
NO....and first of all, if you are using TEMPLATES, you can delete the site_html.pl file. You don't need it.
To make changes, you must edit the link.html file, with the following codes:
<%if Contact Name%>
<%if Contact Email%>
<a href="mailto:<%Contact Email%>"><%Contact Name%></a>
<%endif%>
<%ifnot Contact Email%>
<%Contact Name%>
<%endif%>
<%endif%>
Regards,
Eliot Lee
To make changes, you must edit the link.html file, with the following codes:
Code:
<%if Contact Name%>
<%if Contact Email%>
<a href="mailto:<%Contact Email%>"><%Contact Name%></a>
<%endif%>
<%ifnot Contact Email%>
<%Contact Name%>
<%endif%>
<%endif%>
Regards,
Eliot Lee