/

CM Download (CMDM) - Shortcodes - Available Shortcodes


Shortcodes - Available Shortcodes

Back to User Guides

One of the major features of the CM Download Manager plugin is the ability to show customized or full lists of downloads, as well as download buttons, on any post or page of your site using our supported shortcodes!

The updated list of supported shortcodes is always available from the plugin admin menu as shown in the screenshot below.

In order to include a specific download in any of the CMDM shortcodes, you will need to know its download id. The download id can be found in the user dashboard next to the download name.

Download manager user dashboard


Available Shortcodes

Notice: Shortcodes are case-sensitive.
  • Index page - [cmdm-index]

    Example with additional attributes:

    1. Show only category "Games" in the table view, without category selection - [cmdm-index cat="games" view="table" showcategories="0"]
    2. Show only tags "zip file" and "PDF" in the categories view - [cmdm-index tag="PDF" view="tiles"]
    3. Show files sorted by views, limited to 3 - [cmdm-index limit="3" view="category" sort="rating" showcategories="0" sortbar="0" viewoption="0"]
    4. All attributes - [cmdm-index view="tiles|list|category|table" viewoption="0|1" sortbar="0|1" search="0|1" header="0|1" showcategories="0|1" author="slug 1, slug 2" cat="slug 1, slug 2" tag="slug 1, slug 2" sort="post_title|post_title_desc|post_modified|newest|rating|downloads|views|menu_order" limit="5" alldownloads="0|1"]

Lists

  • Files list[cmdm-files-list] (This shortcode has been described in details in the separate article)

    Examples with additional attributes:

    1. Show only category "Software" in the list view - [cmdm-files-list category="software" view="list ]
    2. Show only tags "zip file" and "PDF" in the categories view - [cmdm-files-list tag="zip file, PDF" view="categories"]
    3. Show all files sorted by views and with the search bar - [cmdm-files-list search="1" sort="views" ]
    4. All options [cmdm-files-list category="category 1, category 2" tag="tag 1,tag 2" view="list|categories" filter="0|1" search="0|1" categoryfilter="0|single|twolevel" userfilter="0/1" tagsfilter="0|1" toggletree="0|1" usercontrols="0|1" author="slug 1, slug 2" sort="post_modified|newest|rating|views|downloads|post_title|post_title_desc|manual" recursive="0|1" limit="10" page="0|1" upload="0|1" permalink="0|1" scroll="0|1" details="0|1" urlfilter="0|1" showauthor="0|1" emptycategories="0|1" query="search" showdate="0|1" ]
  • Downloads List -[CMDM-list]

    Example with additional attributes: [CMDM-list count="5" category="cat-name" sort="desc"]

  • Link to the download list page with predefined filters - [cmdm-files-list-link]

    Example with additional attributes: [cmdm-files-list-link url="page with cmdm-files-list shortcode" category=slug tag=tag search=term separatelink=0]

Download Page Elements

  • Simple download button - [CMDM id=5]
  • Download page header with screenshots area - [CMDM-header id=5]
  • Download page tabs content - [CMDM-content id=5]
  • Download details block - [CMDM-details id=5]
  • Download button block - [CMDM-download id=5]
  • Top Downloads -[CMDM-top-download]

    Example with additional attributes: [CMDM-top-downloads count="5" category="cat-name"]

  • Frequent Contributors - [CMDM-frequent-contributors]

    Example with additional attributes: [CMDM-frequent-contributors count="5" category="cat-name"]

  • Related Downloads - [CMDM-related-downloads]

    Example with additional attributes: [CMDM-related-downloads count="5" sort="desc"]

  • Categories tree - [cmdm-categories-tree view=(tiles|list|category)]

Forms Shortcodes

  • Upload form[cmdm-upload-form]
  • Login form as seen in the CMDM Login Form widget -[cmdm-login-form]

User Shortcodes

  • User's download log - [cmdm-my-logs limit=5]
  • My downloads - [cmdm-my-downloads]

    Example with additional attributes: cmdm-my-downloads edit=1 delete=1 search="string" limit=100] - displays a table with the current user's downloads, the same as displayed in the user's dashboard page.

  • Video Lessons integrated videos statistics - [cmdm-cmvl-stats]

    Example with additional attributes: [cmdm-cmvl-stats channelname=download|video channelpermalink=download|video onlyrelated=1]

  • Downloads history log [cmdm-my-download-history] 
    The shortcode allows you to display detailed downloads history of logged-in users only, or both the logged in and guests. 


More information about the CM Download Manager WordPress Plugin

Other WordPress products can be found at CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center