Templates

Ouput of the filecenter info field in file list

Forum: http://forum.phpwcms.org/viewtopic.php?p=115474#p115474

Condition:/config/phpwcms/conf.inc.php
$phpwcms['allow_cntPHP_rt'] = 1;

We need an special php snipped to do so.

In your template insert behind

<!--FILE_ENTRY_START//--> 

snipped

<!--FILE_ENTRY_START//-->
 
[PHP]
   foreach($GLOBALS['content']['files_result'] as $_files_x => $value) {
      $_longinfo =  $value['f_name'] == '{FILE_NAME}' ? $value['f_longinfo'] : '';
      echo $_longinfo;
   }
 
//   dumpVar($GLOBALS['content']['files_result']);
[/PHP]


Make a test with

dumpVar($GLOBALS['content']['files_result']);

You will see the other variables.