Category layout

Phoca Download - download manager
steffk
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 09 Aug 2017, 12:55

Category layout

Post by steffk »

Hello,

I want to change the layout. But I need help.

I have categories: name1, name2, name3
There are some subcategories name1.1 ,name1.2, name2.1 etc where files in there

On first page I want to show just the main category
name1
name2
name3

On click on "1", I want to have this layout:
name1.1 (not clickable)
- files
- files
name 1.2
- files

and also when I click on name2 etc.

Now I always must click on name 1 then I have
name1.1
name1.2
and must them also click. But in this view I still want to have the files shown.

In default.php in line 82 I added:
echo $this->loadTemplate('files');
but nothing want be shown.

Hope anyone can help asap.
Thank you very much.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48550
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Category layout

Post by Jan »

Hi, see similar posts in this forum. For this you need to customize the code - to load all files and categories at once and display the files e.g. by some javascript function (not recommended as this can overload the database, etc.) or e.g. some ajax, which will load the file on click or on mouse over :idea:

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