Posted by Daniel
2014-07-12

Hi Tom,

I was in the process of implementing CKEditor on with this tool and was wondering if you knew how to allow HTML to be displayed in the search page? At the moment I just get plain text in return such as <b> test </b> and need it to be converted to HTML.
Posted by Tom
2014-07-14

OK, so you want to display raw html instead of encoded html. Then you need this helper function. Open web/staff/common.inc.php in a text editor, and put the following line on the top. The function will be available anywhere inside the web/staff folder.
<?php function getTextValue( $key, $val ){ return $val->attri['value']; } ?>
Second, open the template ( web/staff/tpl.(table-name).search.inc.php ) in a text editor. Find the field placeholder you want to change the output format of. It looks like this:
<?php echo $hm->Zb('rs:def:myfield'); ?>
Add ",ZB_CBF,'getTextValue'" to it like this:
<?php echo $hm->Zb('rs:def:myfield',ZB_CBF,'getTextValue'); ?>
This should display raw html.