Hi there,
I want to have user dashboard with latest uploaded files from other users (from different categories).
I can't find function/method to generate proper file download url based on phocadowlonad configuration.
I mean, I'm looking for smth like: $file->url = PhocaDownload::_Url($file->id) ;
Maybe someone can help me or link me to source where I can find this?
Thanks in advance,
Vitaly
How to generate download URL in 3rd part extension?
-
- Phoca Newbie
- Posts: 2
- Joined: 21 Sep 2014, 15:21
- Jan
- Phoca Hero
- Posts: 48566
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: How to generate download URL in 3rd part extension?
Hi, see the code of category view:
components/com_phocadownload/views/category/view.html.php
components/com_phocadownload/views/category/tmpl/ ...
There you can see which methods are creating the link to download
Jan
components/com_phocadownload/views/category/view.html.php
components/com_phocadownload/views/category/tmpl/ ...
There you can see which methods are creating the link to download

Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 2
- Joined: 21 Sep 2014, 15:21
Re: How to generate download URL in 3rd part extension?
Hi Jan,
thanks for your help.
done. you can close this topic.
maybe would be useful for someone else
You can close this topic.
Vitaly
thanks for your help.
done. you can close this topic.
maybe would be useful for someone else
Code: Select all
$url = JRoute::_(PhocaDownloadRoute::getFileRoute($file_id, $category_id, $file_alias, $cagory_alias, $section_id, 'download'));
You can close this topic.
Vitaly
- Jan
- Phoca Hero
- Posts: 48566
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: How to generate download URL in 3rd part extension?
Ok, thank you for the info.
Jan
Jan
If you find Phoca extensions useful, please support the project