Title: Shortcodes
Last modified: March 10, 2020

---

# Shortcodes

 *  Resolved [webcart](https://wordpress.org/support/users/webcart/)
 * (@webcart)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/shortcodes-363/)
 * Hi
    Great plugin 🙂 Few things I could not find how to: 1. Tree view with 1st
   level of sub-categories opened. 2. Search for categories names and not only file
   names. 3. Open PDF file in a new tab and not in the same tab.
 * Thanks

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [Nayeem Hyder](https://wordpress.org/support/users/nriddhi/)
 * (@nriddhi)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/shortcodes-363/#post-12534980)
 * Hi,
 * 1. Tree view with subcategories should work.
    2. Search for package names will
   be available but not uploaded file files or selected files. 3. For opening files
   in a new tab, you can follow this doc, [https://www.wpdownloadmanager.com/doc/template-files/](https://www.wpdownloadmanager.com/doc/template-files/),
   by default, you are using `link-template-default.php` for link template and `
   page-template-default.php` for the page template. As documentation, you have 
   to copy the file in the theme directory naming a folder called `download-manager`,
   then paste it in `tpls>page-templates` for page template or `tpls>link-templates`
   for link template. And you have to replace `[download_link]` with `<a href="[
   download_url]" class="btn btn-primary" target=_blank>[link_label]</a>` in related
   PHP file.
 * Thanks.
 *  Thread Starter [webcart](https://wordpress.org/support/users/webcart/)
 * (@webcart)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/shortcodes-363/#post-12542852)
 * Thanks.
    1. I meant that all level of sub-directories will be shown as opened.
   2. OK. So I can not search for categories names in one package but only file 
   names in that package. 3. Great solution. Thanks.
 *  Thread Starter [webcart](https://wordpress.org/support/users/webcart/)
 * (@webcart)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/shortcodes-363/#post-12542939)
 * Hi
    Regarding #2 downloading in a new tab – I could not manage to solve it as
   your instructions. The files which I refer to are the files in the Tree View.
   I even tried to change the two files as you instructed in the original location
   but no change. I have changed some folders name in the original location like
   tpls, tpls3 and more directories to other name so they will not be available 
   and still the Tree view worked as before like it does not take any data from 
   those directories.
 *  Plugin Contributor [Shafaet Alam](https://wordpress.org/support/users/shafayat-alam/)
 * (@shafayat-alam)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/shortcodes-363/#post-12548257)
 * Hi,
    As it is now, keeping all nodes expanded is not possible without code customization.
   However, to open files in a new window, you need to replace `location.href = 
   file;` with `window.open(file);`:
 *  Thread Starter [webcart](https://wordpress.org/support/users/webcart/)
 * (@webcart)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/shortcodes-363/#post-12549236)
 * Much appreciate your help!
    If there were 7 stars, I would give you.. That did
   the trick. Thanks. The problem I had before is that I searched the files in the
   other plugin files.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Shortcodes’ is closed to new replies.

 * ![](https://ps.w.org/download-manager/assets/icon-256x256.png?rev=1561688)
 * [Download Manager](https://wordpress.org/plugins/download-manager/)
 * [Support Threads](https://wordpress.org/support/plugin/download-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/download-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/download-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/download-manager/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [webcart](https://wordpress.org/support/users/webcart/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/shortcodes-363/#post-12549236)
 * Status: resolved