category view > filelist ONE PAGE

Phoca Download - download manager
erium22
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 27 Aug 2015, 15:25

category view > filelist ONE PAGE

Post by erium22 »

Hello all,
i need to display the file lists whithin the subcategory list, on one page.

- SUBCATEGORY 1
- Download 1
- Download 2
- Download 3

- SUBCATEGORY 2
- Download 1
- Download 2

- SUBCATEGORY 3
- Download 1
- Download 2

How can I display the file lists of the subcategories?
Line 73 /components/com_phocadownload/views/category/tmpl/default.php

// Subcategories
if (!empty($this->subcategories)) {
foreach ($this->subcategories as $valueSubCat) {

echo '<div class="pd-subcategory">';
echo '<div class="list-row">';
echo '<h2>'. $valueSubCat->title.'</h2>';

HERE FILE LIST
- Download 1
- Download 2
- Download 3


I tried something with PhocaDownloadModelCategory::getFileList() and $valueSubCat->getFileList
didn't work..

Did anybody already made this hack?

Thanx for help,
Pierre
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: category view > filelist ONE PAGE

Post by Jan »

Hi, for now I didn't do such modification as it needs to be set directly for server environment - displaying all categories, subcategories and all files on one site can slow down your server or stop it working (when a lot of items needs to be loaded at once - no pagination, no difference between categories, subcategories and files)

Jan
If you find Phoca extensions useful, please support the project
sirkai
Phoca Member
Phoca Member
Posts: 35
Joined: 15 Nov 2015, 11:25

Re: category view > filelist ONE PAGE

Post by sirkai »

Hi, I think I need the same functionality.
I need all available files listed one one single page, separated by their category.
Any ideas? Thx.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: category view > filelist ONE PAGE

Post by Jan »

If you find Phoca extensions useful, please support the project
Post Reply