Gossamer Forum
Home : Products : DBMan : Customization :

link in external file

Quote Reply
link in external file
i'm using the external text file mod. is it possible to include html code such as a href in the external text file to create a link to another page, such as a mapquest link). if possible i want links in the external file instead of having separate fields in the database for them.
Quote Reply
Re: [delicia] link in external file In reply to
I'm not sure it would work with using the external text file as you would have to add the conditions to get the link to work properly. And I don't think you could have this work within the text file.

For instance for Yahoo maps I use:

if (($rec{'Country'} eq 'United States') && ( $rec{'Address'} && $rec{'City'} && $rec{'State'} ) ) {
$addr = &urlencode($rec{'Address'});
$city = &urlencode("$rec{'City'}, $rec{'State'}");

print qq|<BR><a href="http://maps.yahoo.com/py/maps.py?addr=$addr&csz=$city">Map</a> |;
}

Search for forums for Mapquest and locate any related threads.

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/