wpdm_all_packages title direct download hyperlink & open in new tab

in Download Manager Free

Viewing 9 posts - 1 through 9 (of 9 total)
Aug 1, 2019 at 3:55 pm
#110574
Member
Ed Ammendola
OP

I have the free version. My packages are mostly PDFs. I am using (and wish to continue using) the wpdm_all_packages shortcode because of the pagination and layout. I want use the title as a link to directly download as you show in your demo here: https://demo.wpdownloadmanager.com/wpdmpro/package-list-in-responsive-table/ (eliminating the need for a separate button), but with the ability to open in a new tab or page. I see others have asked about opening in a new tab, but I can’t see any of restricted answers. I want to continue using wpdm_all_packages. Isn’t there a way I can change the javascript to do an onclick=(window.open yada yada yada) or is this absolutely impossible the way the component is written?

Aug 4, 2019 at 7:14 am
#110671

Hi Ed, You can try the following….

[wpdm_all_packages items_per_page="20" categories="cat slugs,cat slugs,cat slugs" jstable=1 order_by="field_name" order="ASC" cols="page_link,file_count,download_count|categories|update_date|download_link" colheads="Title|Categories|Update Date|Download::155px"]

Let me know if you need further help!

Aug 5, 2019 at 1:28 pm
#110693
Member
Ed Ammendola
OP

I admit I may not have been clear with the first part of my question.
You are correct “page_link” does make the title a link, but I don’t want a link to the download page. I want a link to the file itself.

The second part of the question you did not address at all.

To summarize my initial question.
I want the title to be a link that opens the actual file in a new tab.

Aug 6, 2019 at 5:02 am
#110726

Yes, That is possible. Are you able to change code by yourself? Or if you would like to take my help. Kindly send me your Admin login details in a private reply. I will be happy to do it for you!

Aug 6, 2019 at 9:23 pm
#110750
Member
Ed Ammendola
OP
This reply has been marked as private.
Aug 6, 2019 at 9:25 pm
#110751
Member
Ed Ammendola
OP
This reply has been marked as private.
Aug 17, 2019 at 9:01 am
#111020
Moderator
Shafayet
Staff

Hi,
To keep your customization, please copy create a dir named download-manager inside your active theme dir. Then copy the template file wpdm-all-downloads.php there.

Aug 19, 2019 at 4:02 pm
#111083
Member
Ed Ammendola
OP

I need to know how I can retain the class.Package.php file, as well.

I tried moving class.Package.php to both of these places and it is not picked up:
\wp-content\themes\my-theme\download-manager\class.Package.php
\wp-content\themes\my-theme\download-manager\libs\class.Package.php

Aug 20, 2019 at 2:03 pm
#111136
Member
Ed Ammendola
OP

You may disregard the last post from me regarding the class.Package.php override. I was able to keep class.Package.php as provided by the most recent version update and make all necessary changes to the wpdm-all-downloads.php file in my custom overrides folder. Thank you.

Viewing 9 posts - 1 through 9 (of 9 total)

The topic "wpdm_all_packages title direct download hyperlink & open in new tab" is closed to new replies.