Passing URLs from _cm_formatData [message #3458] |
Fri, 08 February 2013 08:54 |
johnftr
Messages: 14 Registered: January 2013
|
Junior Member |
|
|
I have tried following the example shown in the FAQ on how to create an HTML link within each row in a list.
The code I currently have is as follows:
function _cm_formatData ($rowdata, &$css_array)
// perform custom formatting before values are shown to the user.
{
if (!isset($rowdata['person_name'])) {
// merge rank first_name and last_name into person_name
if (isset($rowdata['firstname']) AND isset($rowdata['lastname'])) {
$rowdata['person_name'] = $rowdata['rank'] . " " . $rowdata['firstname'] . ' ' . $rowdata['lastname'];
$rowdata['hyperlnk'] .= 'http://www.bdnw.org.uk]';
} // if
} // if
return $rowdata;
} // _cm_formatData
The name concatenation works fine, but the url simply appears as [url=www.bdnw.org.uk]in th eoutput screen - not a clickable thing in sight!
Grrrrr.
[Updated on: Fri, 08 February 2013 08:56] Report message to a moderator
|
|
|
|