>
Download This Plugin | |
Download Elegant Themes | |
Name | Mmm Simple File List |
Version | 1.4 |
Author | Adam Bissonnette |
Rating | 66 |
Last updated | 2015-02-17 05:12:00 |
Downloads |
665
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
Mmm Simple File List plugin added 2 bytes of resources to the Home page and 2 bytes of resources to the sample Post page.
Mmm Simple File List plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! Mmm Simple File List plugin ads no tables to your Wordpress blog database.This is a simple plugin to list files in a given directory using this shortcode: [MMFileList /].
Parameters:
Output:
For all html formats you can expect to see the following output wrapped in styleable containers:
At this point "comma" is the only available text output and it only outputs the url to the file in a comma delimited list (no links - just text).
If the folder you've entered isn't found or there are no files with the extensions you've listed there will be some warning text output to let you know. This text is wrapped in a "mmm-warning" class in case you want to style it out (for more information on styling check out the FAQ)
Usage Examples:
Let's say you're using the default WordPress Media settings so we can expect your uploads folder to be in /wp-content/uploads/mm/yy/ with this in mind the shortcode "folder" attribute will look in a directory relative to this. With this base directory say we want to list "png" files in the folder "/wp-content/uploads/cats/" we would use the following shortcode:
[MMFileList folder="/../../cats/" format="table" types="png" /]
If you have you disabled the setting to store uploads in the /mm/yy/ folder structure (you can do this within Settings -> Media) and wanted to display that same file you would use this shortcode:
[MMFileList folder="/cats/" format="table" types="png" /]
This will result in a tabular list of all .png files in the /wp-content/uploads/cats/ folder.
Custom Formats
The "li" and "custom" formats allow you to define a template using the content portion of the shortcode. The difference between these two output formats is that "li" will still wrap all the output in a <ul> tag and each file will be wrapped in a <li> tag. Here is an example of how to create a custom template:
[MMFileList folder="/cats/" format="li"]<div class="taco"><a href="{url}">{name} ({size})</a></div>[/MMFileList]
Variables that can be used with the custom templates are as follows: