goldsky / FileDownload-R

FileDownload snippet for MODX revolution
12 stars 7 forks source link

triple output #37

Closed elz64 closed 10 years ago

elz64 commented 10 years ago

Hi,

Using it for the first time (revo 2215) to display on a private page the files contained into a directory ABOVE the httpdocs. This dir is associated to a media source for easy manager uploads.

The final folder name comes frome an extented fields defined on the user's manager page. As the user must be logged the Profile snippet is run at the beginning of the page, thu we get all user's placeholders. [[+privateDIR01]] is the targeted forlder.

[[!FileDownload? &getDir=/var/www/vhosts/XxXXxx/Priv_downloads/[[+privateDIR01]]/ &browseDirectories=0 &dateFormat=d/m/Y &fileCss=[[++assets_url]]templates/tpl1/css/fd.css ]] The output is TRIPLE what it should be. 2 files in the test folder but the list is : file1 file2 file1 file2 file1 file2

?? Thank you

elz64 commented 10 years ago

Solve if I call the PL with a "!" &getDir=/var/www/vhosts/XxXXxx/Priv_downloads/[[!+privateDIR01]]/