Page 1 of 1
how to manipulate data in table view
Posted: 2015-07-30 06:18
by netasia
hi, how do i manipulate the data in hooks folder before it is displayed on the table view?
such as "nl2br(<%%VALUE(text_content)%%>)" or "strip_tags(<%%VALUE(html_content)%%>)
thanks.
Re: how to manipulate data in table view
Posted: 2016-02-15 10:51
by a.gneady
Currently, you can manipulate the data only in one of 2 ways: by modifying the select query using the tablename_init hook and modifying $options->QueryfieldsTV, as in the example here:
http://bigprof.com/appgini/tips-and-tut ... eview-data but in this case you can't use PHP functions, only MySQL functions.
The other way is using the tablename_footer function or the footer-extras.php file to add JavaScript code to manipulate the data. In this case you can use only JavaScript functions but no PHP ones.