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, thus 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
no other glitches.
??
Thank you
EDIT:
replacing the placeholder in the path by its value make the snippet outputs correctly the list
&getDir=`/var/www/vhosts/XxXXxx/Priv_downloads/[[+privateDIR01]]
turned into the hardcoded value of the placeholder
&getDir=`/var/www/vhosts/XxXXxx/Priv_downloads/COA01/
[ed. note: elz064 last edited this post 11 years, 11 months ago.]