/ Published in: PHP
For instance when you want to leverage the JElements in a admin view form...
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$param = new JParameter('audioPath=/media/user/test.mp3'); $xml = & JFactory::getXMLParser('Simple'); 'type' => 'filelist', 'label'=>'Audio', 'name' => 'audioPath', 'default' => '', 'directory' => '/media/user/42daycourse', 'hide_default' => false, 'exclude' =>'(pdf|flv)' )); $param->setXml( $node ); echo $param->render('formitemNamePrefix');