Good day! We’ve noticed that when using the Elementor WPDM add-on and adding a package list a nicely formatted table as added. This is exactly what we want. However, the file icon and the file title are not links, there is no way to download the file while using this package table. also, we’d prefer not to have the download buttons shown. We like the appearance of the table without the button, but it does us no good if we can download the files. The only link is the category text. Below is an example of the code that is generated. How can we have this same table but with the image and the package title be direct download links to the file itself (not to the package download page).
<table id="wpdmmydls-066a18a6ef5f9ea80e3d04d68d8780f4">
<thead>
<tr>
<th id="title"
>Title</th>
<th id="categories"
>Categories</th>
</tr>
</thead>
<tbody>
<tr>
<td
style="background-image: url('http://intranet.pchc.local/wp-content/plugins/download-manager/assets/file-type-icons/pdf.svg');background-size: 36px;background-position: 5px 8px;background-repeat: no-repeat;padding-left: 52px;line-height: normal;">
<strong>ShoreTel Analog Phone Quick Reference (pdf)</strong><br/>
</td>
<td
>
<a class='sbyc' href='http://intranet.pchc.local/?p=22150&tax%5Bwpdmcategory%5D=shoretel'>ShoreTel</a>
</td>
</tr>
<tr>
<td
style="background-image: url('http://intranet.pchc.local/wp-content/plugins/download-manager/assets/file-type-icons/pdf.svg');background-size: 36px;background-position: 5px 8px;background-repeat: no-repeat;padding-left: 52px;line-height: normal;">
<strong>ShoreTel 560 Phone Quick Reference (pdf)</strong><br/>
</td>
<td
>
<a class='sbyc' href='http://intranet.pchc.local/?p=22150&tax%5Bwpdmcategory%5D=shoretel'>ShoreTel</a>
</td>
</tr>
<tr>
<td
style="background-image: url('http://intranet.pchc.local/wp-content/plugins/download-manager/assets/file-type-icons/pdf.svg');background-size: 36px;background-position: 5px 8px;background-repeat: no-repeat;padding-left: 52px;line-height: normal;">
<strong>ShoreTel 230 Quick Phone Reference (pdf)</strong><br/>
</td>
<td
>
<a class='sbyc' href='http://intranet.pchc.local/?p=22150&tax%5Bwpdmcategory%5D=shoretel'>ShoreTel</a>
</td>
</tr>
<tr>
<td
style="background-image: url('http://intranet.pchc.local/wp-content/plugins/download-manager/assets/file-type-icons/pdf.svg');background-size: 36px;background-position: 5px 8px;background-repeat: no-repeat;padding-left: 52px;line-height: normal;">
<strong>ShoreTel Communicator for Windows (pdf)</strong><br/>
</td>
<td
>
<a class='sbyc' href='http://intranet.pchc.local/?p=22150&tax%5Bwpdmcategory%5D=shoretel'>ShoreTel</a>
</td>
</tr>
</tbody>
</table>
<ul class='pagination wpdm-pagination pagination-centered text-center'></ul>
Hello there 🙂
I hope you’re fine?
My website was running WPDM 5.3.3 without any issue. Now, I’ve tried to update to 6.3.3 but I have a fatal error that breaks the site:
PHP Fatal error: Uncaught Error: Class 'WPDM\Package' not found
This code is in one of my template file. If I comment the lines, the site is “working” again but with some missing infos (due to these commented lines).
Here are the lines:
– $data['download_link'] = \WPDM\Package::downloadLink($data['ID'], 0, array(
'template_type' ► 'url'
));
– $files = \WPDM\Package::getFiles($data['ID']);
I guess that this method is not available anymore. But could you tell me how I should replace my code in order to make it work again?
Kind regards,
Cedric
Hi,
I want to click and popup expand, see the picture in this section. How can I add Code to this Templete?
Example web: https://www.iresauce.com/download/monster-5/
Screenshort: https://nimb.ws/AlfY8U
————–
This is the template page code.
<style type=”text/css”>.more_previews_a{display: block;float: left;margin-right: 6px;}</style>
<div class=”row”>
<div class=”col-md-5″>
[thumb_400x0]
</div>
<div class=”col-md-7″>
<ul class=”list-group ml-0 mb-3″>
<li class=”list-group-item d-flex justify-content-between align-items-center [hide_empty:version]”>
[txt=Version]
<span class=”badge badge-primary”>[version]</span>
<li class=”list-group-item d-flex justify-content-between align-items-center [hide_empty:download_count]”>
[txt=Download]
<span class=”badge badge-primary”>[download_count]</span>
<li class=”list-group-item d-flex justify-content-between align-items-center [hide_empty:file_size]”>
[txt=File Size]
<span class=”badge badge-primary”>[file_size]</span>
<li class=”list-group-item d-flex justify-content-between align-items-center [hide_empty:file_count]”>
[txt=File Count]
<span class=”badge badge-primary”>[file_count]</span>
<li class=”list-group-item d-flex justify-content-between align-items-center [hide_empty:create_date]”>
[txt=Create Date]
<span class=”badge badge-primary”>[create_date]</span>
<li class=”list-group-item d-flex justify-content-between align-items-center [hide_empty:update_date]”>
[txt=Last Updated]
<span class=”badge badge-primary”>[update_date]</span>
<li class=”list-group-item d-flex justify-content-between align-items-center [hide_empty:update_date]”>
[download_link]
</div>
</div>
<div class=”row”>
</div>
Hi,
How to change link button download?
current link: https://www.iresauce.com/loginwp-chistudio-admin1234/?redirect_to=https://www.iresauce.com/download/monster-1/
The link I want to change: https://www.iresauce.com/my-account/?redirect_to=https://www.iresauce.com/download/monster-1/
I don’t want outsiders to see my backend link.
—————————–
Screenshort: https://nimb.ws/jT25dW
—————————–
Example download: https://www.iresauce.com/download/monster-1/