=== Autodownload ===
Contributors: fbern
Donate link:
Tags: download, post, page, common, plugin
Requires at least: 2.0.2
Tested up to: 2.6.5
Stable tag: 1.2.3
Autodownload enables you to add links to files in your posts and pages without
interacting with Wordpress.
== Description ==
Autodownload is a WordPress plugin that enables your blog to provide links
to files either in your posts or pages. Emphasize has been put on ease of
use and thus it does most of the things automagically. Autodownload is easy
to install. Installation lasts less than 5 minutes. Once a download folder
for a given post or blog has been defined, adding links to files is as easy
as uploading them file to this folder. The links are automatically
generated and inserted in your post/page, without any interaction with
Wordpress
Features
* Works with posts and pages
* Almost no configuration (one configuration variable)
* Automatically generates links to files and wraps them in list items (li)
* Multiple download sources within one post or page
* Files can be sorted either by name or by modification time
* Link file names in a post or a page
* Supports link descriptions
== Installation ==
This section describes how to install the plugin and get it working.
For **complete instructions** on how to install the plugin, please see
[Autodownload homepage](http://www.fabiobernasconi.com/code/autodownload).
Sorry for any inconveniences this may cause.
1. Download autodownload-1.1.zip
1. Unpack the archive and upload it to your WordPress plugins directory
(usually wp-content/plugins)
1. [optional] If you want to change the default download root directory
(it defaults to wp-content/) then go to the Autodownload options
page and change the root directory
1. For any post or page you want to include links to files you must call
a ad__* function. See the table below for available functions and
their arguments. A function call is always enclosed in a HTML comment.
The first argument is always a path relative to the absolute path defined
in the Autodownload options page and the second argument always the sort
order. A typical call would look like this
``
**!!! Please make sure to preserve the space before and after the function call !!!**
You may want to refer to the table below for an in-depth explanation of the arguments.
For security reasons only functions with a *ad__* prefix will be called by the plugin.
Any other function name is ignored.
1. [optional] If you want to add a description next to the link create a file named
`.ad_descritions` in the directory where your files reside. The first line in the file
refers to the first link, the second line to the second link and so on.
**API change in version 1.2.2 and above!** Calls to ad__filesListLI should not be
wrapped in html list entities anymore!
Description of available functions and their arguments
*ad__fileListLI*
1. path
1. sort order (date or name)
1. [optional] ordered or unordered list (pass either ul or ol)
1. [optional] css for li elements
1. [optional] css for description text
*ad__fileListTable*
1. path
1 sort order (date or name)
1. [optional] css for table element
1. [optional] css for first td
1. [optional] css for second td
== Frequently Asked Questions ==
None at the moment :-(
== Screenshots ==
1. Screenshot showing the (only) configuration variable for the autodownload plugin
2. Backend. That's how a post/page source looks like
3. Result of what was defined in the post/page source.