{"id":14143,"date":"2012-09-01T17:56:48","date_gmt":"2012-09-01T08:56:48","guid":{"rendered":"http:\/\/nogami1.net\/?page_id=14143"},"modified":"2012-09-01T17:56:48","modified_gmt":"2012-09-01T08:56:48","slug":"filedownload%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"page","link":"https:\/\/moo-nog.ssl-lolipop.jp\/blog\/%e9%98%b2%e7%81%bd%e3%80%81%e5%ae%89%e5%85%a8%e3%80%81%e5%ae%89%e5%bf%83\/modx%e9%96%a2%e4%bf%82\/filedownload%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\/","title":{"rendered":"filedownload\u306b\u3064\u3044\u3066"},"content":{"rendered":"<p>\u7d50\u5c40\u306f\u4f7f\u3063\u3066\u306a\u3044\u3067\u3059\u3002<\/p>\n<p><a href=\"http:\/\/muddydogpaws.com\/development\/filedownload\/features.html\">Muddydogpaws.com &#8211; Features<\/a>\u306b\u3088\u308bfiledownload\u30b9\u30cb\u30da\u30c3\u30c8\u306e\u6a5f\u80fd\u7d39\u4ecb<br \/>\n\uff08\u306a\u304a\u3001\uff12\uff0e\uff15\u7248\u306b\u3064\u3044\u3066\u306e\u8a18\u8ff0\u306e\u3088\u3046\u3067\u3042\u308b\u304c\u3001\uff12\uff0e\uff16\u7248\u304c\u65b0\u3057\u3044\u3088\u3046\u3060\u3002\u306a\u304a\u3001\u3053\u308c\u3088\u308a\u4ee5\u524d\u306e\u7248\u306b\u3064\u3044\u3066\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30db\u30fc\u30eb\u304c\u6307\u6458\u3055\u308c\u305f\u304c\u3001\uff12\uff0e\uff15\u7248\u3067\u4fee\u6b63\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3060\u3002\u307e\u305f\u3001\u3053\u308c\u306fMOD\uff58Evolution\u7528\u306b\u306a\u3063\u3066\u304a\u308a\u3001Revolution\u7528\u306e\u3082\u306e\u306f\u5225\u306bFileDownloadPE\u3068\u3044\u3046\u306e\u304c\u4f5c\u6210\u3055\u308c\u305f\u3088\u3046\u3060\u3002\u3053\u306e\u65e5\u672c\u8a9e\u8a33\u306f2012.9\u306b\u4f5c\u6210\u3057\u3066\u3044\u308b\u3002<a href=\"http:\/\/forums.modx.com\/index.php\/topic,26595.msg161801.html\">MODX :: Support\/Comments for FileDownloadPE<\/a>\uff09<br \/>\nMOD\uff58\u7528\u306eFileDownload\u30b9\u30cb\u30da\u30c3\u30c8\u306f\u3001\u6307\u5b9a\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u308b\u30ea\u30b9\u30c8\u3068\u3057\u3066\u8868\u793a\u3057\u307e\u3059\u3002filedownload\u30d7\u30e9\u30b0\u30a4\u30f3\u3068\u3064\u306a\u3052\u3066\u4f7f\u3046\u3068\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u56de\u6570\u4ed8\u306e\u30bb\u30ad\u30e5\u30a2\u306a\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u304c\u3067\u304d\u307e\u3059\u3002\u7d44\u307f\u8fbc\u307f\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304c\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u591a\u6570\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u597d\u304d\u306a\u3060\u3051\u30ab\u30b9\u30bf\u30e0\u5316\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u6a5f\u80fd<br \/>\n\u30fb\u30bb\u30ad\u30e5\u30a2\u306a\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u7528\u306bFileDownloadPlugin\u3068\u7d71\u5408\u5316\u3002<br \/>\n\u30fb\u30e6\u30fc\u30b6\u30fc\u304c\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u95b2\u89a7\u53ef\u80fd\u3002<br \/>\n\u30fb\u5404\u30d5\u30a1\u30a4\u30eb\u3054\u3068\u306b\u51fa\u529b\u306b\u8aac\u660e\u8ffd\u52a0\u3002<br \/>\n\u30fb\u4e00\u3064\u306e\u30b9\u30cb\u30da\u30c3\u30c8\u547c\u3073\u51fa\u3057\u3092\u4f7f\u3063\u3066\u3001\u8868\u793a\u3059\u308b\u30d5\u30a9\u30eb\u30c0\u3092\u8907\u6570\u6307\u5b9a\u3057\u3066\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u30b0\u30eb\u30fc\u30d7\u3068\u3057\u3066\u8868\u793a\u3067\u304d\u307e\u3059\u3002<br \/>\n\u30fb\u30d5\u30a9\u30eb\u30c0\u3084\u30d5\u30a1\u30a4\u30eb\u7528\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u542b\u3093\u3067\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u5b8c\u5168\u306b\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<br \/>\n\u30fb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u30d5\u30a1\u30a4\u30eb\u304b\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u56de\u6570\u3092\u4fdd\u7ba1\u3067\u304d\u307e\u3059\u3002<br \/>\n\u30fb\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u30ab\u30b9\u30bf\u30e0\u5316\u3057\u305f\u30af\u30e9\u30b9\u7528\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u3042\u308a\u307e\u3059\uff08\u30af\u30e9\u30b9\u62e1\u5f35\u3092\u542b\u3080\uff09\u3002<br \/>\n\u30fb\u8907\u96d1\u306a\u51fa\u529b\u30aa\u30d7\u30b7\u30e7\u30f3\u7528\u306b\u591a\u6570\u306e\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u3092\u4f7f\u3048\u307e\u3059\u3002<br \/>\n\u30fb\u30d5\u30a1\u30a4\u30eb\u51fa\u529b\u8868\u793a\u7528\u306b\u30ab\u30b9\u30bf\u30e0\u5316\u3057\u305f\u4e26\u3073\u66ff\u3048\u30aa\u30d7\u30b7\u30e7\u30f3\u3002<br \/>\n\u30fb\u6307\u5b9a\u3059\u308b\u62e1\u5f35\u5b50\u3060\u3051\u3092\u8868\u793a\u3059\u308b\u30d5\u30a3\u30eb\u30bf\u4ed8\u51fa\u529b\u3002<br \/>\n\u30fb\u8868\u793a\u6587\u306e\u8a00\u8a9e\u3092\u30ab\u30b9\u30bf\u30e0\u5316\u3002<br \/>\n\u30fb\u30a4\u30e1\u30fc\u30b8\u3068\u62e1\u5f35\u5b50\u306e\u5bfe\u5fdc\u4ed8\u3051\u3092\u30c1\u30e3\u30f3\u30af\u306b\u4fdd\u5b58\u3057\u3066\u3001\u30b9\u30cb\u30da\u30c3\u30c8\u547c\u3073\u51fa\u3057\u3054\u3068\u306b\u7570\u306a\u308b\u30a4\u30e1\u30fc\u30b8\u3092\u8a2d\u5b9a\u53ef\u80fd\u3002<\/p>\n<p><a href=\"http:\/\/muddydogpaws.com\/development\/filedownload\/install-instructions.html\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><br \/>\n\u306b\u3088\u308b\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u8981\u9818<br \/>\n\uff11\u3000snippets\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4e0b\u306bfiledownload\u3068\u3044\u3046\u540d\u524d\u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\uff12\u3000filedownload.class.inc.php, data.db.class.inc.php, and filecount.txt\u3000\u3092\u305d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<br \/>\n\uff13\u3000FileDownload\u3000\u3068\u3044\u3046\u540d\u524d\u3067\u30b9\u30cb\u30da\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\uff14\u3000FileDownloadSnippet2.5.php\u3000\u306e\u5185\u5bb9\u3092\u305d\u306e\u30b9\u30cb\u30da\u30c3\u30c8\u306e\u30b9\u30cb\u30da\u30c3\u30c8 \u30b3\u30fc\u30c9 (php)\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<br \/>\n\uff15\u3000FileDownloadPlugin\u3092\u4f7f\u3046\u5834\u5408\uff1a<br \/>\n\u3000FileDownloadPlugin\u3068\u3044\u3046\u540d\u524d\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\u3000FileDownloadPlugin1.0.php\u306e\u5185\u5bb9\u3092\u305d\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30d7\u30e9\u30b0\u30a4\u30f3 \u30b3\u30fc\u30c9 (php)\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<br \/>\n\u3000\u305d\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u8a2d\u5b9a\u30bf\u30d6\u3067\u4ee5\u4e0b\u3092\u30d7\u30e9\u30b0\u30a4\u30f3\u8a2d\u5b9a:\u306e\u30dc\u30c3\u30af\u30b9\u306b\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002<br \/>\n<code>&countDownloads=Count Downloads;list;yes,no;yes<br \/>\n&useDbCount=Store Count Where;list;db,file;db<\/code><br \/>\n\u3000\u8a2d\u5b9a\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u3000\u30b7\u30b9\u30c6\u30e0\u30a4\u30d9\u30f3\u30c8\u30bf\u30d6\u3067OnWebPagePrerender\u306e\u6240\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002<br \/>\n\u3000FileDownloadFolder\u3068\u3044\u3046\u540d\u524d\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u5909\u6570\u3092\u4f5c\u6210\u3057\u5165\u529b\u30bf\u30a4\u30d7\u3092text\u306b\u3057\u307e\u3059\u3002<br \/>\n\u3000FileDownload\u30b9\u30cb\u30da\u30c3\u30c8\u3092\u547c\u3073\u51fa\u3059\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u306f\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u5909\u6570FileDownloadFolder\u306b\u8868\u793a\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\uff16\u3000\u30b9\u30cb\u30da\u30c3\u30c8\u547c\u3073\u51fa\u3057\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30ea\u30b9\u30c8\u3092\u8868\u793a\u3055\u3048\u307e\u3059\u3002<\/p>\n<p>\u57fa\u672c\u7684\u4f7f\u3044\u65b9<br \/>\n<code>[!FileDownload? &getFolder=`assets\/snippets\/filedownload`!]<\/code><\/p>\n<p><a href=\"http:\/\/muddydogpaws.com\/development\/filedownload\/parameters.html\">Muddydogpaws.com &#8211; Parameters<\/a><br \/>\n\u306b\u3088\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u8aac\u660e<\/p>\n<h2>Parameters<\/h2>\n<dl>\n<dt>&amp;getFolder<\/dt>\n<dd><em>default:<\/em> null<\/dd>\n<dd><em>values:<\/em> comma delimited list of directories\u30b3\u30f3\u30de\u3067\u533a\u5207\u3063\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30ea\u30b9\u30c8<\/dd>\n<dd><em>description:<\/em> The getFolder parameter is used to specify which directories to display with the snippet.  Multiple directories can be specified by seperating them with a comma.  When specifying multiple directories the directory browsing functionality is no longer available.  When typing a path do not include a trailing \/.\u3000\u8868\u793a\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30b3\u30f3\u30de\u3067\u533a\u5207\u308c\u3070\u8907\u6570\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002\u8907\u6570\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u306f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u95b2\u89a7\u6a5f\u80fd\u306f\u4f7f\u3048\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u30d1\u30b9\u3092\u5165\u529b\u3059\u308b\u306e\u306b\u3001\u6700\u5f8c\u306e\/\u3092\u5165\u308c\u306a\u3044\u3088\u3046\u306b\u3002<\/dd>\n<dd><em>example:<\/em> assets\/snippets\/filedownload<\/dd>\n<dt>&amp;browseDirectories<\/dt>\n<dd><em>default:<\/em> 0<\/dd>\n<dd><em>values:<\/em> [ 1 | 0 ]<\/dd>\n<dd><em>description:<\/em> The browseDirectories parameter allows users to view subdirectories of the directory specified with the getFolder parameter.  When using this feature the following templates get used: parent &#038; folder.\u3000getFolder\u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u6307\u5b9a\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u3088\u308b\u95b2\u89a7\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002\u3053\u306e\u6a5f\u80fd\u3092\u4f7f\u3046\u5834\u5408\u306b\u306f\u4ee5\u4e0b\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304c\u4f7f\u308f\u308c\u307e\u3059\uff1aparent\u3000\u3068\u3000folder\u3002<\/dd>\n<dt>&amp;groupByDirectory<\/dt>\n<dd><em>default:<\/em> 0<\/dd>\n<dd><em>values:<\/em> [ 1 | 0 ]<\/dd>\n<dd><em>description:<\/em> When multiple directories are specified in the getFolder parameter, this parameter will group the files by folder.  When grouped by folder, the directory template is used to output the path above each group.\u3000getFolder\u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u8907\u6570\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u3001\u30d5\u30a9\u30eb\u30c0\u3054\u3068\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u306e\u304c\u3053\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u3059\u3002\u30d5\u30a9\u30eb\u30c0\u3067\u30b0\u30eb\u30fc\u30d7\u5316\u3055\u308c\u305f\u5834\u5408\u3001\u5404\u30b0\u30eb\u30fc\u30d7\u306e\u4e0b\u306b\u30d1\u30b9\u3092\u51fa\u529b\u3059\u308b\u306e\u306bdirectory\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304c\u4f7f\u308f\u308c\u307e\u3059\u3002<\/dd>\n<dt>&amp;getFile<\/dt>\n<dd><em>default:<\/em> null<\/dd>\n<dd><em>values:<\/em> string<\/dd>\n<dd><em>description:<\/em> The getFile parameter will make the snippet output only the file specified.  The getFolder parameter is still required and getFile should be a file inside of the directory.  This allows for use of the download script and download counting with a single file.\u3000\u30b9\u30cb\u30da\u30c3\u30c8\u306e\u51fa\u529b\u3092\u6307\u5b9a\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3060\u3051\u306b\u3055\u305b\u308b\u306e\u304cgetFile\u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u3059\u3002getFolder\u306f\u307e\u3060\u5fc5\u9808\u3067\u3001getFile\u306f\u305d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u3042\u308b\u3079\u304d\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u7528\u3067\u304d\u3001\u5358\u4e00\u30d5\u30a1\u30a4\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30ab\u30a6\u30f3\u30c8\u3092\u53ef\u80fd\u306b\u3055\u305b\u307e\u3059\u3002<\/dd>\n<dd><em>example:<\/em> filedownload.php<\/dd>\n<dt>&amp;chkDesc<\/dt>\n<dd><em>default:<\/em> null<\/dd>\n<dd><em>values:<\/em> the name of a chunk<\/dd>\n<dd><em>description:<\/em> The chkDesc parameter allows descriptions to be added to the file listing included in a chunk.  All of the files and descriptions should be listed in the chunk using the following format:  path to file\/filename|description||<\/dd>\n<dd>\n\t\t\t<em>example:<\/em><\/p>\n<pre>chunk name: fileDescription\nchunk content:\nassets\/snippets\/filedownload\/test.pdf|This is a test pdf. It shows report stuff.||\nassets\/snippets\/filedownload\/options.gif|These are the options available to you.||<\/pre>\n<\/dd>\n<dt>&amp;userSort<\/dt>\n<dd><em>default:<\/em> filename; if &amp;browseDirectories=`1` type,filename; if &amp;groupByDirectory=`1` path,filename<\/dd>\n<dd><em>values:<\/em> [ filename | extension | path | size | sizetext | type | date | description | count ]<\/dd>\n<dd><em>description:<\/em> The userSort parameter allows the outputted files to be sorted by all of the fields listed above.  To sort by multiple fields use a comma delimited list.  When using the directory browsing feature the files will be sorted by type first, this will put the directories first in the list.  When multiple folders are specified and the group by directory feature is used; the files are sorted by path first to keep the files in order by directory.<\/dd>\n<dt>&amp;sortOrder<\/dt>\n<dd><em>default:<\/em> asc<\/dd>\n<dd><em>values:<\/em> [ asc | desc ]<\/dd>\n<dd><em>description:<\/em> The sortOrder parameter makes it possible to sort files in ascending or descending order.<\/dd>\n<dt>&amp;showExt<\/dt>\n<dd><em>default:<\/em> null<\/dd>\n<dd><em>values:<\/em> comma delimited list of file extensions<\/dd>\n<dd><em>description:<\/em> The showExt parameter will limit the files displayed to files with a valid extension from the list.<\/dd>\n<dd><em>example:<\/em> zip,php,txt<\/dd>\n<dt>&amp;dateFormat<\/dt>\n<dd><em>default:<\/em> Y-m-d<\/dd>\n<dd><em>values:<\/em> PHP&#8217;s date formatting options.<\/dd>\n<dd><em>description:<\/em> The dateFormat parameter will change the format of the date displayed for each file in the output.<\/dd>\n<dd><em>example:<\/em> m\/d\/Y<\/dd>\n<\/dl>\n<h3>Permissions<\/h3>\n<dl>\n<dt>&amp;downloadGroups<\/dt>\n<dd><em>default:<\/em> null<\/dd>\n<dd><em>values:<\/em> comma delimited list of web user groups<\/dd>\n<dd><em>description:<\/em> The downloadGroups parameter will make the download link active for users that belong to the specified groups.  If a user is not logged in they will receive a JavaScript alert with the message contained in the noDownload language setting.  Multiple groups can be specified by using a comma delimited list.<\/dd>\n<dd><em>example:<\/em> Registered Users,Admin<\/dd>\n<dt>&amp;deleteGroups<\/dt>\n<dd><em>default:<\/em> null<\/dd>\n<dd><em>values:<\/em> comma delimited list of web user groups<\/dd>\n<dd><em>description:<\/em> The parameter deleteGroups allows the specified web user groups to delete files from the listing.  The link will only be displayed for users that are logged in and in the specified web user group.<\/dd>\n<dd><em>example:<\/em> Admin<\/dd>\n<\/dl>\n<h3>Download Counting<\/h3>\n<dl>\n<dt>&amp;countDownloads<\/dt>\n<dd><em>default:<\/em> 1<\/dd>\n<dd><em>values:<\/em> [ 1 | 0 ]<\/dd>\n<dd><em>description:<\/em> With the countDownloads parameter set to 1, everytime a user downloads a file it will be tracked in a database table (fd_count) or in a file (fileCount).<\/dd>\n<dt>&amp;useDbCount<\/dt>\n<dd><em>default:<\/em> 1<\/dd>\n<dd><em>values:<\/em> [ 1 | 0 ]<\/dd>\n<dd><em>description:<\/em> The useDbCount parameter allows the count information to be stored in wither the database or in a file.  The defualt setting is to include the counts in the database, to store the counts in a file set this to 0.<\/dd>\n<dt>&amp;skipTableCheck<\/dt>\n<dd><em>default:<\/em> 0<\/dd>\n<dd><em>values:<\/em> [ 1 | 0 ]<\/dd>\n<dd><em>description:<\/em> When using the database for counting downloads set this to 1 for an added speed boost.  This will eliminate the check to see if the count table needs added.  Do not set this to 1 when running the snippet for the first time, or the table will not get added.<\/dd>\n<dt>&amp;fileCount<\/dt>\n<dd><em>default:<\/em> assets\/snippets\/filedownload\/filecount.txt<\/dd>\n<dd><em>values:<\/em> path to file<\/dd>\n<dd><em>description:<\/em> This is the location of the file used for download counting.  When using filedownload multiple times this parameter can be changed to keep separate download counts.<\/dd>\n<\/dl>\n<h3>Images<\/h3>\n<dl>\n<dt>&amp;imgLocat<\/dt>\n<dd><em>default:<\/em> null<\/dd>\n<dd><em>values:<\/em> path to images<\/dd>\n<dd><em>description:<\/em> The imgLocat parameter holds the path to the images to associate with each file extension.  The images will be outputted with [<!-- -->+fd.image+<!-- -->] placeholder.<\/dd>\n<dd><em>example:<\/em> assets\/images\/icons<\/dd>\n<dt>&amp;imgTypes<\/dt>\n<dd><em>default:<\/em> null<\/dd>\n<dd><em>values:<\/em> name of a chunk<\/dd>\n<dd><em>description:<\/em> The imgTypes parameter allows for associations between file extensions and an image.  The information on these associations should be put into a chunk similar to the example below. Associations should be in a comma delimited list with an equal sign between the extension and the image name.  The parent extension is used for getting the image for the parent folder link when using directory browsing.  The folder extension is used for getting the image to associate with a directory.  The default extension is applied to all files with extensions not specified in the chunk.<\/dd>\n<dd>\n\t\t\t<em>example:<\/em><\/p>\n<pre>chunk name: fdImages\nchunk content:\njpg=page_white_picture.png,\npng=page_white_picture.png,\ngif=page_white_picture.png,\nphp=page_white_php.png,\njs=page_white_cup.png,\npdf=page_white_acrobat.png,\ntxt=page_white_text.png,\nzip=page_white_zip.png,\nhtml=page_white_world.png,\nparent=arrow_up.png,\nfolder=folder.png,\ndefault=page_white.png<\/pre>\n<\/dd>\n<\/dl>\n<h3>Template &amp; Style<\/h3>\n<dl>\n<dt>&amp;tplList<\/dt>\n<dd>\n\t\t\t<em>default:<\/em><\/p>\n<pre>&lt;!-- This is the header template --&gt;\n&lt;table&gt;\n&lt;tr[+fd.class+]&gt;&lt;td colspan=\"4\"&gt;&lt;strong&gt;Path: [+fd.path+]&lt;\/strong&gt;&lt;\/td&gt;&lt;\/tr&gt;\n&lt;tr&gt;&lt;th colspan=\"2\"&gt;Filename&lt;\/th&gt;&lt;th&gt;Filesize&lt;\/th&gt;&lt;th&gt;Date&lt;\/th&gt;&lt;\/tr&gt;\n&lt;!-- Fd:Splitter --&gt;\n&lt;!-- This is the parent template --&gt;\n&lt;tr[+fd.class+]&gt;\n\t&lt;td&gt;&lt;img src=\"[+fd.image+]\"\/&gt;&lt;\/td&gt;\n\t&lt;td colspan=\"3\"&gt;&lt;a href=\"[+fd.link+]\"&gt;Up Level&lt;\/a&gt;&lt;\/td&gt;\n&lt;\/tr&gt;\n&lt;!-- Fd:Splitter --&gt;\n&lt;!-- This is the folder template --&gt;\n&lt;tr[+fd.class+]&gt;\n\t&lt;td&gt;&lt;img src=\"[+fd.image+]\"\/&gt;&lt;\/td&gt;\n\t&lt;td colspan=\"3\"&gt;&lt;a href=\"[+fd.link+]\"&gt;[+fd.filename+]&lt;\/a&gt;&lt;\/td&gt;\n&lt;\/tr&gt;\n&lt;!-- Fd:Splitter --&gt;\n&lt;!-- This is the file template --&gt;\n&lt;tr[+fd.class+]&gt;\n\t&lt;td&gt;&lt;img src=\"[+fd.image+]\"\/&gt;&lt;\/td&gt;\n\t&lt;td&gt;&lt;a href=\"[+fd.link+]\"&gt;[+fd.filename+]&lt;\/a&gt; &lt;span style=\"font-size:80%\"&gt;([+fd.count+] downloads) [+fd.delete+]&lt;\/span&gt;&lt;\/td&gt;\n\t&lt;td&gt;[+fd.sizetext+]&lt;\/td&gt;\n\t&lt;td&gt;[+fd.date+]&lt;\/td&gt;\n&lt;\/tr&gt;\n&lt;tr&gt;&lt;td&gt;&lt;\/td&gt;&lt;td colspan=\"3\"&gt;[+fd.description+]&lt;\/td&gt;&lt;\/tr&gt;\n&lt;!-- Fd:Splitter --&gt;\n&lt;!-- This is the delete link template --&gt;\n&lt;a href=\"[+fd.deletelink+]\"&gt;Delete&lt;\/a&gt;\n&lt;!-- Fd:Splitter --&gt;\n&lt;!-- This is the template used when &amp;groupByDirectory=`1` --&gt;\n&lt;tr[+fd.class+]&gt;\n\t&lt;td colspan=\"4\"&gt;&lt;strong&gt;[+fd.directory+]&lt;\/strong&gt;&lt;\/td&gt;\n&lt;\/tr&gt;\n&lt;!-- Fd:Splitter --&gt;\n&lt;!-- This is the footer template --&gt;\n&lt;\/table&gt;<\/pre>\n<\/dd>\n<dd><em>values:<\/em> chunk name with the above format<\/dd>\n<dd><em>description:<\/em> The templating for filedownload is all handled with one chunk.  This chunk is split into seven sections: header, parent, folder, file, delete link, group by, and footer.  All of these sections should be in the chunk template even if they are not all being used or it will not be processed correctly.<\/dd>\n<dd>\n\t\t\t<em>template sections:<\/em><\/p>\n<ol>\n<li>Header &#8211; Displayed at the top the filedownload output.  When using directory browsing the current path is placed in this section using the following placeholders: [<!-- -->+fd.path+], [<!-- -->+fd.class+]<\/li>\n<li>Parent &#8211; This template is used for the link to the parent directory when directory browsing is used. Uses the same placeholders as the File template except for fd.delete and fd.filenumber.<\/li>\n<li>Folder &#8211; This template is used for each folder that is displayed when using the directory browsing.  Uses the same placeholders as the File template except for fd.delete.<\/li>\n<li>File &#8211; This template is used for each file that is displayed. The following placeholders can be used: [<!-- -->+fd.filename+], [<!-- -->+fd.extension+], [<!-- -->+fd.path+], [<!-- -->+fd.size+], [<!-- -->+fd.sizetext+], [<!-- -->+fd.type+], [<!-- -->+fd.date+], [<!-- -->+fd.description+], [<!-- -->+fd.image+], [<!-- -->+fd.delete+], [<!-- -->+fd.count+], [<!-- -->+fd.link+], [<!-- -->+fd.class+], [<!-- -->+fd.filenumber+]<\/li>\n<li>Delete Link &#8211; This template is used to setup the link for file deleting.  The template will be inserted into the [+fd.delete+] placeholder of the file template when a user has the correct permissions. The following placeholder can be used: [<!-- -->+fd.deletelink+]<\/li>\n<li>Group By &#8211; This template is used to display the path when multiple directories are called and &amp;groupByDirectory=`1`.  The following placeholders can be used: [<!-- -->+fd.directory+],[+<!-- -->fd.class+]<\/li>\n<li>Footer &#8211; Displayed at the bottom of the filedownload output.  There are no placeholders for this template.<\/li>\n<\/ol>\n<\/dd>\n<dt>&amp;splitter<\/dt>\n<dd><em>default:<\/em> &lt;!&#8211; Fd:Splitter &#8211;&gt;<\/dd>\n<dd><em>values:<\/em> string from tplList chunk<\/dd>\n<dd><em>description:<\/em> The splitter parameter should be set to the string used to seperate your templates in the chunk.  If the default splitter is used or the default template is used this does not need changed.<\/dd>\n<dt>&amp;altCss<\/dt>\n<dd><em>default:<\/em> fd-alt<\/dd>\n<dd><em>values:<\/em> string<\/dd>\n<dd><em>description:<\/em> This parameter specifies the class that will be applied to every other file\/folder so a ledger look can be styled.<\/dd>\n<dt>&amp;firstFolderCss<\/dt>\n<dd><em>default:<\/em> null<\/dd>\n<dd><em>values:<\/em> string<\/dd>\n<dd><em>description:<\/em> This parameter specifies the class that will be applied to the first folder.<\/dd>\n<dt>&amp;lastFolderCss<\/dt>\n<dd><em>default:<\/em> null<\/dd>\n<dd><em>values:<\/em> string<\/dd>\n<dd><em>description:<\/em> This parameter specifies the class that will be applied to the last folder.<\/dd>\n<dt>&amp;firstFileCss<\/dt>\n<dd><em>default:<\/em> null<\/dd>\n<dd><em>values:<\/em> string<\/dd>\n<dd><em>description:<\/em> This parameter specifies the class that will be applied to the first file.<\/dd>\n<dt>&amp;lastFileCss<\/dt>\n<dd><em>default:<\/em> null<\/dd>\n<dd><em>values:<\/em> string<\/dd>\n<dd><em>description:<\/em> This parameter specifies the class that will be applied to the last file.<\/dd>\n<dt>&amp;folderCss<\/dt>\n<dd><em>default:<\/em> fd-folder<\/dd>\n<dd><em>values:<\/em> string<\/dd>\n<dd><em>description:<\/em> This parameter specifies the class that will be applied to all folders.<\/dd>\n<dt>&amp;fileCss<\/dt>\n<dd><em>default:<\/em> fd-file<\/dd>\n<dd><em>values:<\/em> string<\/dd>\n<dd><em>description:<\/em> This parameter specifies the class that will be applied to all files.<\/dd>\n<dt>&amp;parentCss<\/dt>\n<dd><em>default:<\/em> fd-parent<\/dd>\n<dd><em>values:<\/em> string<\/dd>\n<dd><em>description:<\/em> This parameter specifies the class that will be applied to the parent item.<\/dd>\n<dt>&amp;directoryCss<\/dt>\n<dd><em>default:<\/em> fd-directory<\/dd>\n<dd><em>values:<\/em> string<\/dd>\n<dd><em>description:<\/em> This parameter specifies the class that will be applied to the directory for multi-folder grouping.<\/dd>\n<dt>&amp;pathCss<\/dt>\n<dd><em>default:<\/em> fd-path<\/dd>\n<dd><em>values:<\/em> string<\/dd>\n<dd><em>description:<\/em> This parameter specifies the class that will be applied to the path when using directory browsing.<\/dd>\n<dt>&amp;extCss<\/dt>\n<dd><em>default:<\/em> 0<\/dd>\n<dd><em>values:<\/em> [ 1 | 0 ]<\/dd>\n<dd><em>description:<\/em> With this parameter set to 1 a class will be added to each file with the files extension. For example, a pdf would get the class: fd-pdf.<\/dd>\n<\/dl>\n<h3>Language<\/h3>\n<dl>\n<dt>&amp;delSuccess<\/dt>\n<dd><em>default:<\/em> You have deleted: <\/dd>\n<dd><em>values:<\/em> string<\/dd>\n<dd><em>description:<\/em> This message will be displayed after the successful deletion of a file.  The name of the file will be appended to the end of the message.<\/dd>\n<dt>&amp;delError<\/dt>\n<dd><em>default:<\/em> There was an error deleting: <\/dd>\n<dd><em>values:<\/em> string<\/dd>\n<dd><em>description:<\/em> This message will be displayed if there was an error deleting a file.  The name of the file will be appended to the end of the message.<\/dd>\n<dt>&amp;dirOpenError<\/dt>\n<dd><em>default:<\/em> Cannot open the directory: <\/dd>\n<dd><em>values:<\/em> string<\/dd>\n<dd><em>description:<\/em> This message will be displayed if the directory specified in the getFolder parameter cannot be opened.<\/dd>\n<dt>&amp;notaDir<\/dt>\n<dd><em>default:<\/em> The path specified is not a directory: <\/dd>\n<dd><em>values:<\/em> string<\/dd>\n<dd><em>description:<\/em> This message will be displayed if the directory specified in the getFolder parameter is not a directory.<\/dd>\n<dt>&amp;noDownload<\/dt>\n<dd><em>default:<\/em> You do not have permission to download this file.<\/dd>\n<dd><em>values:<\/em> string<\/dd>\n<dd><em>description:<\/em> This message will be inserted into the javascript alert if a user does not have access to download a file.<\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>\u7d50\u5c40\u306f\u4f7f\u3063\u3066\u306a\u3044\u3067\u3059\u3002 Muddydogpaws.com &#8211; Fea &hellip; <a href=\"https:\/\/moo-nog.ssl-lolipop.jp\/blog\/%e9%98%b2%e7%81%bd%e3%80%81%e5%ae%89%e5%85%a8%e3%80%81%e5%ae%89%e5%bf%83\/modx%e9%96%a2%e4%bf%82\/filedownload%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":4139,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-14143","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/moo-nog.ssl-lolipop.jp\/blog\/wp-json\/wp\/v2\/pages\/14143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/moo-nog.ssl-lolipop.jp\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/moo-nog.ssl-lolipop.jp\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/moo-nog.ssl-lolipop.jp\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/moo-nog.ssl-lolipop.jp\/blog\/wp-json\/wp\/v2\/comments?post=14143"}],"version-history":[{"count":0,"href":"https:\/\/moo-nog.ssl-lolipop.jp\/blog\/wp-json\/wp\/v2\/pages\/14143\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/moo-nog.ssl-lolipop.jp\/blog\/wp-json\/wp\/v2\/pages\/4139"}],"wp:attachment":[{"href":"https:\/\/moo-nog.ssl-lolipop.jp\/blog\/wp-json\/wp\/v2\/media?parent=14143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}