I'm having trouble using getFieldUnencoded in a recordlist.php page (it works fine in my browserecord.php page however). If if I have this in my recordlist.php page:
<?php echo nl2br( $record->getFieldUnencoded('source_with_URL', 0))?>
I get this error when trying to view the page:
Fatal error: Call to undefined method RecordHighlighter::getFieldUnencoded() in C:Inetpubwwwrootsiteselected_records.php on line 115
If I change it to:
<?php echo nl2br( $record->getField('source_with_URL', 0))?>
I don't get the error but I don't see the field, which contains HTML. I suspect the problem related to this at the top of the table (I'm simply viewing the found recorcds from a search):
<?php $recnum = 1;
foreach ($records as $fmrecord) {
$record = new RecordHighlighter($fmrecord, $cgi);
$rowclass = ($recnum % 2 == 0) ? "table_row" : "alt_row";
$recid = $record->getRecordId();
$pos = strpos($recid, "RID_!");
if ($pos !== false) {
$recid = substr($recid,0,5) . urlencode(substr($recid,strlen("RID_!")));
}?>
I've been trying to change this for a few hours now and can't get past this error - can anyone point me in the right direction?
Many thanks,
Steve