CM Download (CMDM) - Getting Started - Creating Your Own Index and Download Pages
Using Shortcodes Instead of the Index and Download Pages
Why Do It
By default, CM Download provides an index page and a download page. You can disable them and create your own instead. This can be useful for users who would rather customize their interface.
To help you creating your own solution, the plugin offer many shortcodes, including the "one download page shortcode", explained in detail below.
How To Do It
To manage which interface you are using, head to the plugin's settings → Index Page tab → Index page general settings.
Here you choose whether the default index page will be used or not.
A similar option can be found in the Download Page tab:
Now that both are disabled, you should present the downloads in another way, such as using the One Download Page shortcode.
The One Download Page Shortcode
[cmdm-files-list] shortcode let the user create a one page download list of all available.
It displays a list of available downloads on a single page. It can replace the CMDM index page and also all the separate download pages. To use it, simply type it in any page or post.
[CMDM-list count="5" category="cat-name" sort="desc"]
The parameters for this shortcode are:
count="number"- The number of related downloads you would like to display.
category="cat-name"- The category that you want the downloads to belong to.
sort="desc|asc"- An option to sort the related downloads in ascending (oldest first) or descending (newest first) order.
Learn more about this shortcode in its dedicated guide.