Hello, all. Another newbie showing his newbiness here. I am using MODx 0.9.6, FileDownload snippet 2.5 and FileDownloadPlugin 1.2.
FileDownload snippet is working fine if I disable the plugin. However, whenever I activate the plugin, it behaves as if it is either not being passed the file path or is being passed an incorrect path in that it simply redisplays the download page.
My snippet call is very simple:
[!FileDownload!]
My FileDownloadPlugin TV is set to:
assets/media/VideoTraining
The download list is displayed perfectly fine so it is finding the directory. The URIs are something like:
http://iscs.opensourcedevel.com/develtraining.html/ISCSTrain1st-IntroAndiputilities.avi
I am using friendly URLs. Use friendly alias path is set to No. No suffix or prefix is set. Use friendly aliases is set to Yes. Allow duplicates and automatically generate alias are set to No. I have changed my rewrite rule from:
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
to:
RewriteRule ^([^/]*)/?(.*)$ index.php?q=$1&d=$2 [L,QSA]
I’m not quite sure what the author means by:
Warning! Friendly URLs work only with flat document aliasing structure setting Use friendly alias path: No and therefore won’t work for:
http://www.mymodxsite.com/en/products/downloads.html/myzipfile.zip
The download document is a second tier document. I tried moving it to a top level document but I get the same results.
What am I doing wrong? Thanks - John