Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » Passing URLs from _cm_formatData
Passing URLs from _cm_formatData [message #3458] Fri, 08 February 2013 08:54 Go to previous message
johnftr is currently offline  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

 
Read Message
Read Message
Previous Topic: Parameters to batch functions / timeout
Next Topic: Question
Goto Forum:
  


Current Time: Sun Nov 24 17:03:04 EST 2024

Total time taken to generate the page: 0.01099 seconds