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.

english/phpwcms-system/article/contentparts/filelist/templates.txt · Last modified: 2018/06/03 18:09 (external edit)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0