Support-Forum
24.05.2013 23:46:34 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: jDownloads Security Fix Published!
It is very recommended, that all jDownloads users makes a update to this fixed release. It exists for both Joomla versions separate as jD 1.8.3. & 1.9.1.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: jDownloads Latest Module direct download instead of jump to category  (Read 1554 times)
0 Members and 1 Guest are viewing this topic.
kevinp
Newbie
*
Offline Offline

Posts: 23


« on: 15.12.2011 14:28:39 »

Hey all,

Great component en modules!  Grin

But i have a question about the Latest Module.
Is it possible to change the link in de Latest Module to a direct download (direct link).
The situation right now is, when you click on an item, you jump to the category where the documents is placed.
But i like to have a direct download, so you don't jump to the category but download it straight away!

Hope you can help me ?!

Maybe is it also possible with the other modules (top module ....)

Greats from the Netherlands!

Kevin
Logged
Arno
Administrator
***
Offline Offline

Posts: 8.051



WWW
« Reply #1 on: 16.12.2011 00:25:44 »

Hi.
Quote
The situation right now is, when you click on an item, you jump to the category where the documents is placed.
See the options - you can also link directly to the download details page.
A direct link is not possible without code changings.
Logged

Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions archive!
kevinp
Newbie
*
Offline Offline

Posts: 23


« Reply #2 on: 16.12.2011 07:53:07 »

I saw it is possible to link to the details page, but that's not how we like to have it.

Can someone help me with the code changings?  Huh

The situation is:
We building an intranet.
We make articles with the list of documents belong to the article (in jdownloads)
When they click on a document we want the people to download it directly, so they don't go to the jdownloads component, because it could be for some people confusing.


@Arno Thanks for the reply...
Logged
kevinp
Newbie
*
Offline Offline

Posts: 23


« Reply #3 on: 16.12.2011 10:40:32 »

I fixed it...

go to the modules/mod_jdownloads_latest/tmpl folder.
Edit the template you choose in the module (alternate or default)

I choose alternate

Then change on line 61

$link = 'index.php?option='.$option.'&Itemid='.$Itemid.'&view=viewcategory&catid='.$files[$i]->cat_id;

into

$link = 'index.php?option='.$option.'&Itemid='.$Itemid.'&view=finish&catid='.$files[$i]->cat_id.'&cid='.$files[$i]->file_id;


@arno maybe you can add a feature into the module like that

Greetz

Kevin

Logged
gardesmed
Newbie
*
Offline Offline

Posts: 3


« Reply #4 on: 30.12.2011 17:11:21 »

PERFECT! You saved my day.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

-->
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.276 seconds with 17 queries.