jDownloadsownloads.com


Author Topic: Download latest build from directory with multiple builds  (Read 407 times)

0 Members and 1 Guest are viewing this topic.

Offline RenniePet

  • Newbie
  • *
  • Posts: 2
Hello,

Can a download button be configured so you point it at a directory containing multiple files, like this:

Merlinia OutBack 5.4.65.7928.zip
Merlinia OutBack 5.4.66.7930.zip
Merlinia OutBack 5.4.68.7938.zip

and it automatically selects the newest one, based on filename or file date?

So then you could have two buttons, "Download latest version" and "View available downloads".

Thanks.

PS. There's something wrong with this forum - the input box doesn't show new lines, so it looks like the text is one long block of text with no line spacing.

Offline ColinM

  • Moderator
  • *
  • Posts: 3.642
Re: Download latest build from directory with multiple builds
« Reply #1 on: 03.01.2018 22:10:41 »
Hi,
If you look at the jD Content plugin documentation
http://www.jdownloads.net/documentations/item/overview-and-installation-notes-for-jdownloads-plugins
you can see an example like:
{jd_file cat_latest==12 count==3} lists the 3 latest Downloads added to category with ID 12.
 The count can be set as 1 and a single category selected so say {jd_file cat_latest==25 count==1} would show the latest Download created in the category with id 25.
For some more useful notes please see
http://www.jdownloads.net/documentations/item/using-the-content-plugin-in-articles-and-modules

Colin
PS to get new lines to show then use the {k} in header - I usualltype a little including a new line and then click on the {k}

Offline RenniePet

  • Newbie
  • *
  • Posts: 2
Re: Download latest build from directory with multiple builds
« Reply #2 on: 04.01.2018 06:52:50 »
Thanks for your reply. Could you please take a look at this:
https://forum.joomla.org/viewtopic.php?f=715&t=958024
and let me know if your extension can work like that?
Thanks.

Offline ColinM

  • Moderator
  • *
  • Posts: 3.642
Re: Download latest build from directory with multiple builds
« Reply #3 on: 04.01.2018 17:11:32 »
Hi
Those users who have access to upload can upload to the relevant category (directory) using FTP.  They can then be made into regular Downloads.
Please note jD offers more than just a file manager.  There are extensive descriptive parts, protection, pricing and so on as may be required.  Most info is held in the associated database tables. And Directories/files can be protected from direct download access

Colin