This topic is locked

Linking to an external page/file based on Record ID

1/30/2008 6:53:24 AM
PHPRunner General questions
zzapper author

Hi,

So I'd link a field with an automatically generated hyperlink so that record id 48 linked as follows
<a href="/docs/48.doc">48.doc</a>
possible?

J
Jane 1/30/2008

Hi,
you can do it using Custom format for RecordID field on the "View as" settings dialog on the Visual Editor tab.

Here is a sample:

$value = "<a href=\"/docs/".$value.".doc\">".$value.".doc</a>";

zzapper author 1/30/2008

Hi,

you can do it using Custom format for RecordID field on the "View as" settings dialog on the Visual Editor tab.

Here is a sample:



Jane,
Thanx worked a treat
BTW you actually use $value and not the name of your field